diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/bbackupd/BackupClientDirectoryRecord.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/bbackupd/BackupClientDirectoryRecord.cpp b/bin/bbackupd/BackupClientDirectoryRecord.cpp index 691fd1c0..7334af14 100644 --- a/bin/bbackupd/BackupClientDirectoryRecord.cpp +++ b/bin/bbackupd/BackupClientDirectoryRecord.cpp @@ -453,7 +453,11 @@ bool BackupClientDirectoryRecord::SyncDirectoryEntry( #else // !WIN32 if(EMU_LSTAT(filename.c_str(), &file_st) != 0) { - if(!(rParams.mrContext.ExcludeDir(filename))) + // We don't know whether it's a file or a directory, so check + // both. This only affects whether a warning message is + // displayed; the file is not backed up in either case. + if(!(rParams.mrContext.ExcludeFile(filename)) && + !(rParams.mrContext.ExcludeDir(filename))) { // Report the error (logs and eventual email to // administrator) |