# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/unzip/hotfix-large-symlinks.patch # Copyright (C) 2022 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License version 2 as used by the T2 SDE. # --- T2-COPYRIGHT-NOTE-END --- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Subject: Re: "git archive" seems to be broken wrt zip files Date: Sun, 11 Sep 2011 15:14:36 +0200 Jeff King writes: > IOW, the zip file looks right. I wonder if this is actually a bug in > "unzip". It is. This only happens if you have more then 16k entries and when one of the 16k entry infos is reused it happend to be previously used for a symlink entry. Here's a patch for unzip60 for reference: --- a/process.c +++ b/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() */ Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."