From 90301110cce424d2887b82e23618afd80b851ed2 Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 31 Jan 2006 18:27:28 +0000 Subject: [PATCH] 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 --- Source/exehead/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/exehead/util.c b/Source/exehead/util.c index 830c0947..5f5e46a1 100644 --- a/Source/exehead/util.c +++ b/Source/exehead/util.c @@ -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);