[Box Backup-dev] COMMIT r619 - box/chris/general/bin/bbstored
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Mon, 5 Jun 2006 13:25:06 +0000 (GMT)
Author: chris
Date: 2006-06-05 13:25:02 +0000 (Mon, 05 Jun 2006)
New Revision: 619
Modified:
box/chris/general/bin/bbstored/BackupContext.cpp
Log:
* BackupContext.cpp
- Open patch files in binary mode on Win32
Modified: box/chris/general/bin/bbstored/BackupContext.cpp
===================================================================
--- box/chris/general/bin/bbstored/BackupContext.cpp 2006-06-05 13:24:17 UTC (rev 618)
+++ box/chris/general/bin/bbstored/BackupContext.cpp 2006-06-05 13:25:02 UTC (rev 619)
@@ -456,8 +456,10 @@
{
// Open it twice
#ifdef WIN32
- FileStream diff(tempFn.c_str(), O_RDWR | O_CREAT);
- FileStream diff2(tempFn.c_str(), O_RDWR);
+ FileStream diff(tempFn.c_str(),
+ O_RDWR | O_CREAT | O_BINARY);
+ FileStream diff2(tempFn.c_str(),
+ O_RDWR | O_BINARY);
#else
FileStream diff(tempFn.c_str(), O_RDWR | O_CREAT | O_EXCL);
FileStream diff2(tempFn.c_str(), O_RDONLY);