diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-01-16 23:04:03 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-01-16 23:04:03 +0000 |
commit | c65a71fb2ab2484525ba702bd219bc36d57156ea (patch) | |
tree | 343cac34df831e1b5c1e08f62de968ac7fc77f3a /lib/common | |
parent | 4df0e43009eeceb8e824122d068853d37279d179 (diff) |
Check for exclude entries that end in a path separator, and log a warning
(refs #3)
Diffstat (limited to 'lib/common')
-rw-r--r-- | lib/common/ExcludeList.cpp | 9 |
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); } } |