summaryrefslogtreecommitdiff
path: root/pkg/unzip/patch/0004-Initialize-the-symlink-flag.patch
blob: d8f4d38de8a3e2a6455b09970985e541b5347d80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 6e7edd8d5093795a96a80e36b7c019de3f637cc8 Mon Sep 17 00:00:00 2001
From: Andreas Schwab <schwab@linux-m68k.org>
Date: Thu, 16 Jun 2016 22:41:53 -0700
Subject: [PATCH] Initialize the symlink flag

From 06-initialize-the-symlink-flag in
unzip_6.0-16+deb8u2.debian.tar.xz.
---
 process.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/process.c b/process.c
index df58d28..3228bde 100644
--- a/process.c
+++ b/process.c
@@ -1758,6 +1758,12 @@ int process_cdir_file_hdr(__G)    /* return PK-type error code */
         = (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() */
-- 
2.8.1