summaryrefslogtreecommitdiff
path: root/lib/common/ExcludeList.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-01-16 23:04:03 +0000
committerChris Wilson <chris+github@qwirx.com>2007-01-16 23:04:03 +0000
commitc65a71fb2ab2484525ba702bd219bc36d57156ea (patch)
tree343cac34df831e1b5c1e08f62de968ac7fc77f3a /lib/common/ExcludeList.cpp
parent4df0e43009eeceb8e824122d068853d37279d179 (diff)
Check for exclude entries that end in a path separator, and log a warning
(refs #3)
Diffstat (limited to 'lib/common/ExcludeList.cpp')
-rw-r--r--lib/common/ExcludeList.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/common/ExcludeList.cpp b/lib/common/ExcludeList.cpp
index 842780b6..3edbc291 100644
--- a/lib/common/ExcludeList.cpp
+++ b/lib/common/ExcludeList.cpp
@@ -22,6 +22,7 @@
#include "Utils.h"
#include "Configuration.h"
#include "Archive.h"
+#include "Logging.h"
#include "MemLeakFindOn.h"
@@ -140,6 +141,14 @@ void ExcludeList::AddDefiniteEntries(const std::string &rEntries)
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);
}
}