diff options
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))  	{ | 
