[GRASS-CVS] moritz: grass6/general/g.setproj main.c,2.10,2.11
grass at intevation.de
grass at intevation.de
Fri Nov 23 16:06:28 EST 2007
Author: moritz
Update of /grassrepository/grass6/general/g.setproj
In directory doto:/tmp/cvs-serv25416
Modified Files:
main.c
Log Message:
replace rename() by G_rename_file()
Index: main.c
===================================================================
RCS file: /grassrepository/grass6/general/g.setproj/main.c,v
retrieving revision 2.10
retrieving revision 2.11
diff -u -d -r2.10 -r2.11
--- main.c 6 Aug 2007 15:21:21 -0000 2.10
+++ main.c 23 Nov 2007 21:06:26 -0000 2.11
@@ -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