[Box Backup-commit] COMMIT r2528 - box/trunk/bin/bbackupd
boxbackup-dev at boxbackup.org
boxbackup-dev at boxbackup.org
Mon Jun 22 06:33:00 BST 2009
Author: chris
Date: 2009-06-22 06:32:59 +0100 (Mon, 22 Jun 2009)
New Revision: 2528
Modified:
box/trunk/bin/bbackupd/BackupClientDirectoryRecord.cpp
Log:
Ignore stat() errors on excluded directories.
Modified: box/trunk/bin/bbackupd/BackupClientDirectoryRecord.cpp
===================================================================
--- box/trunk/bin/bbackupd/BackupClientDirectoryRecord.cpp 2009-05-22 20:01:51 UTC (rev 2527)
+++ box/trunk/bin/bbackupd/BackupClientDirectoryRecord.cpp 2009-06-22 05:32:59 UTC (rev 2528)
@@ -294,14 +294,21 @@
#else
if(EMU_LSTAT(filename.c_str(), &file_st) != 0)
{
- // Report the error (logs and
- // eventual email to administrator)
- rNotifier.NotifyFileStatFailed(this,
- filename, strerror(errno));
+ if(!(rParams.mrContext.ExcludeDir(
+ filename)))
+ {
+ // Report the error (logs and
+ // eventual email to
+ // administrator)
+ rNotifier.NotifyFileStatFailed(
+ this, filename,
+ strerror(errno));
- // FIXME move to NotifyFileStatFailed()
- SetErrorWhenReadingFilesystemObject(
- rParams, filename.c_str());
+ // FIXME move to
+ // NotifyFileStatFailed()
+ SetErrorWhenReadingFilesystemObject(
+ rParams, filename.c_str());
+ }
// Ignore this entry for now.
continue;
More information about the Boxbackup-commit
mailing list