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:
parent
2c7ee57a18
commit
90301110cc
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue