[Box Backup-commit] COMMIT r2526 - box/trunk/lib/common

boxbackup-dev at boxbackup.org boxbackup-dev at boxbackup.org
Fri May 22 09:38:46 BST 2009


Author: chris
Date: 2009-05-22 09:38:45 +0100 (Fri, 22 May 2009)
New Revision: 2526

Modified:
   box/trunk/lib/common/InvisibleTempFileStream.cpp
Log:
Improve debugging when opening temp file fails, by calling the
filename constructor of FileStream.


Modified: box/trunk/lib/common/InvisibleTempFileStream.cpp
===================================================================
--- box/trunk/lib/common/InvisibleTempFileStream.cpp	2009-05-21 22:02:31 UTC (rev 2525)
+++ box/trunk/lib/common/InvisibleTempFileStream.cpp	2009-05-22 08:38:45 UTC (rev 2526)
@@ -24,9 +24,9 @@
 // --------------------------------------------------------------------------
 InvisibleTempFileStream::InvisibleTempFileStream(const char *Filename, int flags, int mode)
 #ifdef WIN32
-	: FileStream(::openfile(Filename, flags | O_TEMPORARY, mode))
+	: FileStream(Filename, flags | O_TEMPORARY, mode)
 #else
-	: FileStream(::open(Filename, flags, mode))
+	: FileStream(Filename, flags, mode)
 #endif
 {
 	#ifndef WIN32




More information about the Boxbackup-commit mailing list