[GRASS-CVS] markus: grass6/general/g.setproj main.c,2.10,2.10.2.1

grass at intevation.de grass at intevation.de
Thu Nov 29 08:32:21 EST 2007


Author: markus

Update of /grassrepository/grass6/general/g.setproj
In directory doto:/tmp/cvs-serv19024/general/g.setproj

Modified Files:
      Tag: releasebranch_6_3
	main.c 
Log Message:
replace rename() with G_rename_file() for Win compatibility (merge from HEAD)

Index: main.c
===================================================================
RCS file: /grassrepository/grass6/general/g.setproj/main.c,v
retrieving revision 2.10
retrieving revision 2.10.2.1
diff -u -d -r2.10 -r2.10.2.1
--- main.c	6 Aug 2007 15:21:21 -0000	2.10
+++ main.c	29 Nov 2007 13:32:19 -0000	2.10.2.1
@@ -330,7 +330,7 @@
      */
     if (exist) {
 	sprintf(buff, "%s~", path);
-	rename(path, buff);
+	G_rename_file(path, buff);
     }
     if (Out_proj == 0)
 	goto write_units;
@@ -487,7 +487,7 @@
      */
     if (access(path, 0) == 0) {
 	sprintf(buff, "%s~", path);
-	rename(path, buff);
+	G_rename_file(path, buff);
     }
     if (Out_proj == 0)
 	leave(0);




More information about the grass-commit mailing list