[GRASS-CVS] markus: grass6/db/drivers/dbf table.c,1.20,1.20.2.1

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


Author: markus

Update of /grassrepository/grass6/db/drivers/dbf
In directory doto:/tmp/cvs-serv19024/db/drivers/dbf

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

Index: table.c
===================================================================
RCS file: /grassrepository/grass6/db/drivers/dbf/table.c,v
retrieving revision 1.20
retrieving revision 1.20.2.1
diff -u -d -r1.20 -r1.20.2.1
--- table.c	15 Apr 2007 19:35:19 -0000	1.20
+++ table.c	29 Nov 2007 13:32:19 -0000	1.20.2.1
@@ -308,7 +308,7 @@
     DBFClose ( dbf );
 
     /* Copy */
-    if ( rename ( name, db.tables[t].file ) ) {
+    if ( G_rename_file ( name, db.tables[t].file ) ) {
 	    append_error( "Cannot move %s\nto %s\n", 
                           name, db.tables[t].file );
             return DB_FAILED;




More information about the grass-commit mailing list