unzip-6.0-symlink.patch 493 B

123456789101112131415161718
  1. diff --git a/process.c b/process.c
  2. index 1e9a1e1..905732b 100644
  3. --- a/process.c
  4. +++ b/process.c
  5. @@ -1751,6 +1751,12 @@ int process_cdir_file_hdr(__G) /* return PK-type error code */
  6. = (G.crec.general_purpose_bit_flag & (1 << 11)) == (1 << 11);
  7. #endif
  8. +#ifdef SYMLINKS
  9. + /* Initialize the symlink flag, may be set by the platform-specific
  10. + mapattr function. */
  11. + G.pInfo->symlink = 0;
  12. +#endif
  13. +
  14. return PK_COOL;
  15. } /* end function process_cdir_file_hdr() */