Created attachment 935202 [details]
Patch to process.c (the -X option has never worked on Unix/Linux).
Description of problem: Files extracted with unzip are owned by root:root even when -X is specified.
Version-Release number of selected component: unzip-6.00.12fc20
How reproducible: Attempt to use -X, then use 'ls -l' on extracted files.
Steps to Reproduce:
1. Create a zip file archiving one or more files not owned by root:root.
(Zip version 3.0) linux# zip /tmp/test.zip /home/*/.cshrc
2. mkdir /tmp/testing; cd /tmp/testing; unzip -X /tmp/test.zip
3. ls -l home/*/*
All extracted files are owned by root:root.
Extracted files should have correct owner and group IDs.
The code for -X depends on preprocessor definitions that are never defined.
This bug has been patched in Debian, but not RHEL or Fedora.
See comment #5 in 'Does "unzip -X" work in Info-ZIP UnZip 6.00?'
Thanks for patch Joe. -X option works right now. Update will be done soon.
unzip-6.0-17.fc21 has been submitted as an update for Fedora 21.
unzip-6.0-14.fc20 has been submitted as an update for Fedora 20.
unzip-6.0-13.fc19 has been submitted as an update for Fedora 19.
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing unzip-6.0-17.fc21'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
unzip-6.0-14.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
unzip-6.0-17.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.