summaryrefslogtreecommitdiffstats
path: root/source/a/infozip/unzip.git.archive.fix.diff
blob: 6349a2c9404737ef88445f42c82c5b27e9234bf5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- process.c
+++ process.c
@@ -1751,6 +1751,12 @@ int process_cdir_file_hdr(__G)    /* ret
         = (G.crec.general_purpose_bit_flag & (1 << 11)) == (1 << 11);
 #endif
 
+#ifdef SYMLINKS
+    /* Initialize the symlink flag, may be set by the platform-specific
+       mapattr function.  */
+    G.pInfo->symlink = 0;
+#endif
+
     return PK_COOL;
 
 } /* end function process_cdir_file_hdr() */