diff options
| author | Vadim ProductEngine <vsavchuk@productengine.com> | 2012-03-19 19:12:03 +0200 | 
|---|---|---|
| committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2012-03-19 19:12:03 +0200 | 
| commit | 7b4d05894df0b9151dfcf95c3d70c652dc9b922c (patch) | |
| tree | 891b0fa35c95fcf2eebf3711fab7d2481ea5998d /indra/mac_updater | |
| parent | aa4ccff19f3f7e2a16509d4e31d7c69caeea96c1 (diff) | |
MAINT-141, MAINT-95, MAINT-62 FIXED Don't delete files using masks starting with "/".
Encountering such a mask will show a warning message and throw a debug assertion.
Diffstat (limited to 'indra/mac_updater')
| -rw-r--r-- | indra/mac_updater/mac_updater.cpp | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/indra/mac_updater/mac_updater.cpp b/indra/mac_updater/mac_updater.cpp index 809f66cb1d..aa45c5d23f 100644 --- a/indra/mac_updater/mac_updater.cpp +++ b/indra/mac_updater/mac_updater.cpp @@ -1188,9 +1188,7 @@ void *updatethreadproc(void*)  			llinfos << "Clearing cache..." << llendl; -			char mask[LL_MAX_PATH];		/* Flawfinder: ignore */ -			snprintf(mask, LL_MAX_PATH, "%s*.*", gDirUtilp->getDirDelimiter().c_str());		 -			gDirUtilp->deleteFilesInDir(gDirUtilp->getExpandedFilename(LL_PATH_CACHE,""),mask); +			gDirUtilp->deleteFilesInDir(gDirUtilp->getExpandedFilename(LL_PATH_CACHE,""), "*.*");  			llinfos << "Clear complete." << llendl; | 
