[Box Backup-commit] COMMIT r1244 - box/chris/merge/bin/bbackupd

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sun Jan 14 16:23:49 GMT 2007


Author: chris
Date: 2007-01-14 16:23:49 +0000 (Sun, 14 Jan 2007)
New Revision: 1244

Modified:
   box/chris/merge/bin/bbackupd/BackupClientDirectoryRecord.cpp
Log:
Don't die on unreadable files (refs #3)


Modified: box/chris/merge/bin/bbackupd/BackupClientDirectoryRecord.cpp
===================================================================
--- box/chris/merge/bin/bbackupd/BackupClientDirectoryRecord.cpp	2007-01-14 14:59:27 UTC (rev 1243)
+++ box/chris/merge/bin/bbackupd/BackupClientDirectoryRecord.cpp	2007-01-14 16:23:49 UTC (rev 1244)
@@ -634,7 +634,14 @@
 			{
 				rParams.GetProgressNotifier().NotifyFileStatFailed(this, 
 					filename, strerror(errno));
-				THROW_EXCEPTION(CommonException, OSFileError)
+
+				// Report the error (logs and 
+				// eventual email to administrator)
+				SetErrorWhenReadingFilesystemObject(rParams, 
+					filename.c_str());
+
+				// Ignore this entry for now.
+				continue;
 			}
 			
 			// Extract required data




More information about the Boxbackup-commit mailing list