Skip to content

Instantly share code, notes, and snippets.

@shyim
Created July 14, 2022 14:40
Show Gist options
  • Save shyim/3d1f2496cf53c8e438e392aa488ca08e to your computer and use it in GitHub Desktop.
Save shyim/3d1f2496cf53c8e438e392aa488ca08e to your computer and use it in GitHub Desktop.
Fix unpack symlink issue
--- process.c
+++ process.c
@@ -1751,6 +1751,12 @@ int process_cdir_file_hdr(__G) /* ret
= (G.crec.general_purpose_bit_flag & (1 << 11)) == (1 << 11);
#endif
+#ifdef SYMLINKS
+ /* Initialize the symlink flag, may be set by the platform-specific
+ mapattr function. */
+ G.pInfo->symlink = 0;
+#endif
+
return PK_COOL;
} /* end function process_cdir_file_hdr() */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment