[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
- Previous message: [GRASS-CVS] markus: grass6/imagery/i.find main.c,2.8,2.8.2.1
- Next message: [GRASS-CVS] markus: grass6/vector/v.in.ascii a2b.c, 1.17,
1.17.2.1 description.html, 1.43, 1.43.2.1 in.c, 1.50,
1.50.2.1 points.c, 1.24, 1.24.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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);
- Previous message: [GRASS-CVS] markus: grass6/imagery/i.find main.c,2.8,2.8.2.1
- Next message: [GRASS-CVS] markus: grass6/vector/v.in.ascii a2b.c, 1.17,
1.17.2.1 description.html, 1.43, 1.43.2.1 in.c, 1.50,
1.50.2.1 points.c, 1.24, 1.24.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the grass-commit
mailing list