Blame SOURCES/unzip-6.0-x-option.patch
|
|
623fdc |
--- ./process.c.orig 2009-03-06 02:25:10.000000000 +0100
|
|
|
623fdc |
+++ ./process.c 2013-09-12 10:51:16.000000000 +0200
|
|
|
623fdc |
@@ -2901,9 +2901,9 @@
|
|
|
623fdc |
*/
|
|
|
623fdc |
|
|
|
623fdc |
#ifdef IZ_HAVE_UXUIDGID
|
|
|
623fdc |
- if (eb_len >= EB_UX3_MINLEN
|
|
|
623fdc |
- && z_uidgid != NULL
|
|
|
623fdc |
- && (*((EB_HEADSIZE + 0) + ef_buf) == 1)
|
|
|
623fdc |
+ if ((eb_len >= EB_UX3_MINLEN)
|
|
|
623fdc |
+ && (z_uidgid != NULL)
|
|
|
623fdc |
+ && ((*((EB_HEADSIZE + 0) + ef_buf) == 1)))
|
|
|
623fdc |
/* only know about version 1 */
|
|
|
623fdc |
{
|
|
|
623fdc |
uch uid_size;
|
|
|
623fdc |
@@ -2915,10 +2915,10 @@
|
|
|
623fdc |
flags &= ~0x0ff; /* ignore any previous UNIX field */
|
|
|
623fdc |
|
|
|
623fdc |
if ( read_ux3_value((EB_HEADSIZE + 2) + ef_buf,
|
|
|
623fdc |
- uid_size, z_uidgid[0])
|
|
|
623fdc |
+ uid_size, &z_uidgid[0])
|
|
|
623fdc |
&&
|
|
|
623fdc |
read_ux3_value((EB_HEADSIZE + uid_size + 3) + ef_buf,
|
|
|
623fdc |
- gid_size, z_uidgid[1]) )
|
|
|
623fdc |
+ gid_size, &z_uidgid[1]) )
|
|
|
623fdc |
{
|
|
|
623fdc |
flags |= EB_UX2_VALID; /* signal success */
|
|
|
623fdc |
}
|