Remove unneeded check
authorRobert Pengelly <robertapengelly@hotmail.com>
Fri, 3 Oct 2025 03:48:04 +0000 (04:48 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Fri, 3 Oct 2025 03:48:04 +0000 (04:48 +0100)
unzip.c

diff --git a/unzip.c b/unzip.c
index 44fd25d8a17f787d060bbaeaec649f4e12442029..118a18a7bae3906c77d5cecf62f73879ac11c162 100755 (executable)
--- a/unzip.c
+++ b/unzip.c
@@ -701,7 +701,7 @@ static void extract_zip (const char *path) {
 
 #endif
         
-        if (cfh.ext_attrs & EXT_ATTR_DIR || (p = strrchr (cfh.name, ch))) {
+        if ((p = strrchr (cfh.name, ch))) {
         
             if (p) { *p = '\0'; }
             
@@ -813,7 +813,7 @@ static void extract_zip (const char *path) {
             if (p) { *p = ch; }
             free (temp);
             
-            if (cfh.ext_attrs & EXT_ATTR_DIR || cfh.name[cfh.name_len - 1] == ch) {
+            if (cfh.name[cfh.name_len - 1] == ch) {
             
                 free (cfh.name);