zip and unzip do not handle symbolic links correctly
|Reported by:||markh||Owned by:||nobody|
|Has a Patch:||no||Platform:||All|
Problem with unzip: Trying to unzip the file attached to this ticket results in the following output:
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.