[haiku-bugs] [Haiku] #12042: zip and unzip do not handle symbolic links correctly

  • From: "markh" <trac@xxxxxxxxxxxx>
  • Date: Fri, 01 May 2015 19:49:11 -0000

#12042: zip and unzip do not handle symbolic links correctly
-----------------------+------------------------------
Reporter: markh | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: - General | Version: R1/Development
Keywords: | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
-----------------------+------------------------------
Problem with unzip:
Trying to unzip the file attached to this ticket results in the following
output:

Archive: libz.zip
linking: libz.so
error: zipfile probably corrupt (segmentation violation)

This unzips properly on BeOS. There are 2 symbolic links in the file that
link to the third (real) file in the zip.

Problem with zip:
Trying to create a zip with a symbolic link results in a file with only
regular files.
Steps to reproduce:
- Create a folder named test
- Create a file in this folder (for example with a simple touch command)
- Create a symbolic link to the file
- Zip the folder and all contents with the zip command (for example: zip
-r test.zip test
- Unzip the zipfile again.

You now have two regular files instead of one regular file with one
symbolic link pointing to it.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12042>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: