[Box Backup-commit] COMMIT r2975 - box/trunk/lib/backupstore

subversion at boxbackup.org subversion at boxbackup.org
Thu Jun 30 22:26:15 BST 2011


Author: chris
Date: 2011-06-30 22:26:15 +0100 (Thu, 30 Jun 2011)
New Revision: 2975

Modified:
   box/trunk/lib/backupstore/BackupStoreInfo.cpp
Log:
Hopefully fix off-by-4 read of old-style BackupStoreInfo header, thanks to Sune M?\195?\184lgaard for reporting.


Modified: box/trunk/lib/backupstore/BackupStoreInfo.cpp
===================================================================
--- box/trunk/lib/backupstore/BackupStoreInfo.cpp	2011-06-30 19:45:24 UTC (rev 2974)
+++ box/trunk/lib/backupstore/BackupStoreInfo.cpp	2011-06-30 21:26:15 UTC (rev 2975)
@@ -192,6 +192,7 @@
 	{
 		// Read in a header
 		info_StreamFormat_1 hdr;
+		rf->Seek(0, IOStream::SeekType_Absolute);
 
 		if(!rf->ReadFullBuffer(&hdr, sizeof(hdr),
 			0 /* not interested in bytes read if this fails */))




More information about the Boxbackup-commit mailing list