[Box Backup-commit] COMMIT r1319 - box/chris/general/lib/common
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Sat, 03 Mar 2007 21:44:43 +0000
Author: chris
Date: 2007-03-03 21:44:43 +0000 (Sat, 03 Mar 2007)
New Revision: 1319
Modified:
box/chris/general/lib/common/ExcludeList.cpp
Log:
Log a warning for exclude entries which end in a path separator and
will therefore never match (from chris/merge)
Modified: box/chris/general/lib/common/ExcludeList.cpp
===================================================================
--- box/chris/general/lib/common/ExcludeList.cpp 2007-03-03 21:43:51 UTC (rev 1318)
+++ box/chris/general/lib/common/ExcludeList.cpp 2007-03-03 21:44:43 UTC (rev 1319)
@@ -18,6 +18,7 @@
#include "Utils.h"
#include "Configuration.h"
#include "Archive.h"
+#include "Logging.h"
#include "MemLeakFindOn.h"
@@ -136,6 +137,14 @@
entry = ReplaceSlashesDefinite(entry);
#endif
+ if (entry.size() > 0 && entry[entry.size() - 1] ==
+ DIRECTORY_SEPARATOR_ASCHAR)
+ {
+ BOX_WARNING("Exclude entry ends in path "
+ "separator, will never match: "
+ << entry);
+ }
+
mDefinite.insert(entry);
}
}