diff options
Diffstat (limited to 'pkg/unzip/patch/0004-Initialize-the-symlink-flag.patch')
| -rw-r--r-- | pkg/unzip/patch/0004-Initialize-the-symlink-flag.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkg/unzip/patch/0004-Initialize-the-symlink-flag.patch b/pkg/unzip/patch/0004-Initialize-the-symlink-flag.patch new file mode 100644 index 00000000..d8f4d38d --- /dev/null +++ b/pkg/unzip/patch/0004-Initialize-the-symlink-flag.patch @@ -0,0 +1,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 + |
