summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2010-01-31 22:57:46 +0000
committerChris Wilson <chris+github@qwirx.com>2010-01-31 22:57:46 +0000
commit7e564ddb4c8391a96d52a89e599252c38ef83f1b (patch)
tree16f1667150a0f278185ded20c82122de3de59a38
parent9def4381ffd64f7c3eddb77052048dcb167cd4c5 (diff)
Comment why excluded directories are excluded before statting them.
-rw-r--r--bin/bbackupquery/BackupQueries.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/bbackupquery/BackupQueries.cpp b/bin/bbackupquery/BackupQueries.cpp
index 1179e04e..d6b6bf91 100644
--- a/bin/bbackupquery/BackupQueries.cpp
+++ b/bin/bbackupquery/BackupQueries.cpp
@@ -1549,6 +1549,11 @@ void BackupQueries::Compare(int64_t DirID, const std::string &rStoreDir,
std::string storeDirPath(rStoreDir + "/" +
localDirEn->d_name);
+ // Check whether dir is excluded before trying to
+ // stat it, to fix problems with .gvfs directories
+ // that are not readable by root causing compare
+ // to crash:
+ // http://lists.boxbackup.org/pipermail/boxbackup/2010-January/000013.html
if(rParams.IsExcludedDir(localDirPath))
{
rParams.NotifyExcludedDir(localDirPath,