fixed bug #1420657 - RMDIR doesn't delete file with double dots prefix

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4512 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2006-01-31 18:27:28 +00:00
parent 2c7ee57a18
commit 90301110cc

View file

@ -132,7 +132,8 @@ void NSISCALL myDelete(char *buf, int flags)
fdfn = fd.cAlternateFileName;
#ifdef NSIS_SUPPORT_RMDIR
if (fdfn[0] != '.' || (fdfn[1] != '.' && fdfn[1]))
if (fdfn[0] == '.' && !fdfn[1]) continue;
if (fdfn[0] == '.' && fdfn[1] == '.' && !fdfn[2]) continue;
#endif//NSIS_SUPPORT_RMDIR
{
mystrcpy(fn,fdfn);