Update of /cvsroot/monetdb/MonetDB5/src/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2492/src/mal

Modified Files:
        mal_box.mx 
Log Message:
propagated changes of Tuesday Nov 27 2007 - Friday Nov 30 2007
from the MonetDB_5-2 branch to the development trunk


Index: mal_box.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_box.mx,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- mal_box.mx  16 Jul 2007 13:25:10 -0000      1.80
+++ mal_box.mx  30 Nov 2007 12:36:02 -0000      1.81
@@ -633,9 +633,10 @@
                showException(MAL, "box.saveBox", "can not determine box file");
                return 0;
        }
-       if (access(*boxfile,R_OK)==0 && rename(*boxfile, *boxfilebak)) {
+       if (access(*boxfile,R_OK)==0 &&
+               (unlink(*boxfilebak), rename(*boxfile, *boxfilebak) < 0)) {
 #ifdef DEBUG_MAL_BOX
-               stream_printf(GDKout, "saveBox:can not rename %s\n", boxfile);
+               stream_printf(GDKout, "saveBox:can not rename %s to %s\n", 
*boxfile, *boxfilebak);
 #endif
                showException(MAL,"box.saveBox", "can not rename backup");
                GDKfree(*boxfile); *boxfile = NULL;


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to