# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/unzip/20-unzip-uidgid-fix.patch # Copyright (C) 2021 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: sms Subject: Restore uid and gid information when requested Bug-Debian: http://bugs.debian.org/689212 X-Debian-version: 6.0-8 --- a/process.c +++ b/process.c @@ -2904,7 +2904,7 @@ #ifdef IZ_HAVE_UXUIDGID if (eb_len >= EB_UX3_MINLEN && z_uidgid != NULL - && (*((EB_HEADSIZE + 0) + ef_buf) == 1) + && (*((EB_HEADSIZE + 0) + ef_buf) == 1)) /* only know about version 1 */ { uch uid_size; @@ -2916,10 +2916,10 @@ flags &= ~0x0ff; /* ignore any previous UNIX field */ if ( read_ux3_value((EB_HEADSIZE + 2) + ef_buf, - uid_size, z_uidgid[0]) + uid_size, &z_uidgid[0]) && read_ux3_value((EB_HEADSIZE + uid_size + 3) + ef_buf, - gid_size, z_uidgid[1]) ) + gid_size, &z_uidgid[1]) ) { flags |= EB_UX2_VALID; /* signal success */ }