summaryrefslogtreecommitdiff
path: root/bin/bbackupd/BackupClientDirectoryRecord.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2010-05-20 20:33:35 +0000
committerChris Wilson <chris+github@qwirx.com>2010-05-20 20:33:35 +0000
commitd6aa5749dffa351de158af5bdb79b6897328fa98 (patch)
tree4e24a59a4e52b39029fcf469446255529d92a310 /bin/bbackupd/BackupClientDirectoryRecord.cpp
parent97f4c1fc04a67e41d8219845f3f64031c678f0a0 (diff)
Don't back up sockets and pipes, thanks to Mick Kappenburg for spotting
that the fix for Debian bug was incorrect.
Diffstat (limited to 'bin/bbackupd/BackupClientDirectoryRecord.cpp')
-rw-r--r--bin/bbackupd/BackupClientDirectoryRecord.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/bbackupd/BackupClientDirectoryRecord.cpp b/bin/bbackupd/BackupClientDirectoryRecord.cpp
index e03d53c2..84c17dab 100644
--- a/bin/bbackupd/BackupClientDirectoryRecord.cpp
+++ b/bin/bbackupd/BackupClientDirectoryRecord.cpp
@@ -364,14 +364,14 @@ void BackupClientDirectoryRecord::SyncDirectory(
// Store on list
dirs.push_back(std::string(en->d_name));
}
- else if (type == S_IFSOCK || type == S_IFIFO)
- {
- // removed notification for these types
- // see Debian bug 479145, no objections
- }
else
{
- if(rParams.mrContext.ExcludeFile(filename))
+ if (type == S_IFSOCK || type == S_IFIFO)
+ {
+ // removed notification for these types
+ // see Debian bug 479145, no objections
+ }
+ else if(rParams.mrContext.ExcludeFile(filename))
{
rNotifier.NotifyFileExcluded(
this,