unzip/unzip-initialize-the-symlink-flag.patch
Marcus Meissner dd23dcea8b Accepting request 917706 from home:glaubitz:branches:Archiving
- Add patch to fix issue with some files being incorrectly
  detected as symlinks (boo#1190273)
  + unzip-initialize-the-symlink-flag.patch

OBS-URL: https://build.opensuse.org/request/show/917706
OBS-URL: https://build.opensuse.org/package/show/Archiving/unzip?expand=0&rev=57
2021-09-21 09:21:29 +00:00

21 lines
513 B
Diff

From: Andreas Schwab <schwab@linux-m68k.org>
Subject: Initialize the symlink flag
Bug-Debian: https://bugs.debian.org/717029
X-Debian-version: 6.0-10
--- a/process.c
+++ b/process.c
@@ -1758,6 +1758,12 @@
= (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() */