aboutsummaryrefslogtreecommitdiffstats
path: root/main/unzip/20-unzip-uidgid-fix.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-02-08 13:21:02 +0200
committerTimo Teräs <timo.teras@iki.fi>2015-02-08 13:22:19 +0200
commit345ad0326ce0c2890b0980cb50b706e7de7d863f (patch)
treec18be7b3ef7b0cd6e27ba00d914264cd3205a1cc /main/unzip/20-unzip-uidgid-fix.patch
parentccbc6e837a6df9649026cc834f43001742fa1c40 (diff)
downloadaports-345ad0326ce0c2890b0980cb50b706e7de7d863f.tar.bz2
aports-345ad0326ce0c2890b0980cb50b706e7de7d863f.tar.xz
main/unzip: new aport
Info-ZIP unzip http://infozip.org/UnZip.html
Diffstat (limited to 'main/unzip/20-unzip-uidgid-fix.patch')
-rw-r--r--main/unzip/20-unzip-uidgid-fix.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/unzip/20-unzip-uidgid-fix.patch b/main/unzip/20-unzip-uidgid-fix.patch
new file mode 100644
index 0000000000..3a308990e1
--- /dev/null
+++ b/main/unzip/20-unzip-uidgid-fix.patch
@@ -0,0 +1,29 @@
+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 */
+ }