unzip-6.0-x-option.patch 1.1 KB

1234567891011121314151617181920212223242526272829
  1. --- unzip60/process.c.orig 2009-03-05 23:25:10.000000000 -0200
  2. +++ unzip60/process.c 2017-05-18 14:47:34.000000000 -0300
  3. @@ -2895,9 +2895,9 @@
  4. */
  5. #ifdef IZ_HAVE_UXUIDGID
  6. - if (eb_len >= EB_UX3_MINLEN
  7. - && z_uidgid != NULL
  8. - && (*((EB_HEADSIZE + 0) + ef_buf) == 1)
  9. + if ((eb_len >= EB_UX3_MINLEN)
  10. + && (z_uidgid != NULL)
  11. + && ((*((EB_HEADSIZE + 0) + ef_buf) == 1)))
  12. /* only know about version 1 */
  13. {
  14. uch uid_size;
  15. @@ -2909,10 +2909,10 @@
  16. flags &= ~0x0ff; /* ignore any previous UNIX field */
  17. if ( read_ux3_value((EB_HEADSIZE + 2) + ef_buf,
  18. - uid_size, z_uidgid[0])
  19. + uid_size, &z_uidgid[0])
  20. &&
  21. read_ux3_value((EB_HEADSIZE + uid_size + 3) + ef_buf,
  22. - gid_size, z_uidgid[1]) )
  23. + gid_size, &z_uidgid[1]) )
  24. {
  25. flags |= EB_UX2_VALID; /* signal success */
  26. }