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

grass at intevation.de grass at intevation.de
Fri Nov 23 15:59:21 EST 2007


Author: moritz

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

Modified Files:
	table.c 
Log Message:
changed rename to G_rename_file for win compatibility


Index: table.c
===================================================================
RCS file: /grassrepository/grass6/db/drivers/dbf/table.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- table.c	15 Apr 2007 19:35:19 -0000	1.20
+++ table.c	23 Nov 2007 20:59:19 -0000	1.21
@@ -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