diff options
author | Oz Linden <oz@lindenlab.com> | 2012-05-29 12:42:53 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-05-29 12:42:53 -0400 |
commit | 81870e09c98da59bf64289e3fe46f4e4281876d3 (patch) | |
tree | d9e1a28b3e0e732c6b32d2ea67f5f56de6bc8a7a /indra/llvfs | |
parent | b2baee8e34a141c28fd2a7b60566558c1019c0a9 (diff) | |
parent | 5db5102fe05f7d2ef3535516da269abb276dad6b (diff) |
merge changes for DRTVWR-148
Diffstat (limited to 'indra/llvfs')
-rw-r--r-- | indra/llvfs/lldir.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llvfs/lldir.cpp b/indra/llvfs/lldir.cpp index f3ac17d612..32d081d552 100644 --- a/indra/llvfs/lldir.cpp +++ b/indra/llvfs/lldir.cpp @@ -86,6 +86,13 @@ S32 LLDir::deleteFilesInDir(const std::string &dirname, const std::string &mask) std::string fullpath; S32 result; + // File masks starting with "/" will match nothing, so we consider them invalid. + if (LLStringUtil::startsWith(mask, getDirDelimiter())) + { + llwarns << "Invalid file mask: " << mask << llendl; + llassert(!"Invalid file mask"); + } + LLDirIterator iter(dirname, mask); while (iter.next(filename)) { |