[Box Backup-dev] COMMIT r877 - box/chris/merge/lib/backupclient

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Thu, 31 Aug 2006 23:16:17 +0100


Author: chris
Date: 2006-08-31 23:16:17 +0100 (Thu, 31 Aug 2006)
New Revision: 877

Modified:
   box/chris/merge/lib/backupclient/BackupStoreFile.cpp
Log:
* lib/backupclient/BackupStoreFile.cpp

	Close file before trying to apply attributes to it. Otherwise,
	when we close it the timestamp will be updated on Win32 (refs #3)


Modified: box/chris/merge/lib/backupclient/BackupStoreFile.cpp
===================================================================
--- box/chris/merge/lib/backupclient/BackupStoreFile.cpp	2006-08-31 22:15:09 UTC (rev 876)
+++ box/chris/merge/lib/backupclient/BackupStoreFile.cpp	2006-08-31 22:16:17 UTC (rev 877)
@@ -289,6 +289,8 @@
 			// Copy it out to the file
 			stream->CopyStreamTo(out);
 		}
+
+		out.Close();
 		
 		// Write the attributes
 		stream->GetAttributes().WriteAttributes(DecodedFilename);