diff options
author | Sam Bingner <sam@bingner.com> | 2019-06-18 11:38:22 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-06-18 11:38:22 -1000 |
commit | 6a336ff55fd9e31188a04f8ee848309653135219 (patch) | |
tree | 5ccc0cca0eb8b3b3670c8d9b658873ed7ce48c68 /data/unzip/debian/patches/05-fix-uid-gid-handling.patch | |
parent | 193f32e39e93ea855bda21c551362d9117160ba3 (diff) |
Update unzip to work with new ipsw files
Diffstat (limited to 'data/unzip/debian/patches/05-fix-uid-gid-handling.patch')
-rw-r--r-- | data/unzip/debian/patches/05-fix-uid-gid-handling.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/data/unzip/debian/patches/05-fix-uid-gid-handling.patch b/data/unzip/debian/patches/05-fix-uid-gid-handling.patch new file mode 100644 index 000000000..ee9b3ddc6 --- /dev/null +++ b/data/unzip/debian/patches/05-fix-uid-gid-handling.patch @@ -0,0 +1,29 @@ +From: "Steven M. Schweda" <sms@antinode.info> +Subject: Restore uid and gid information when requested +Bug-Debian: https://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 */ + } |