Bug 1720761 - The -X option to unzip has never worked on Unix/Linux.
Summary: The -X option to unzip has never worked on Unix/Linux.
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: unzip
Version: 7.8
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jakub Martisko
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-14 20:56 UTC by Patrick Calhoun
Modified: 2019-06-14 20:57 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)
Patch to process.c for UID/GID restoration (1.14 KB, patch)
2019-06-14 20:56 UTC, Patrick Calhoun
no flags Details | Diff
Spec file updates to apply patch and enable IZ_HAVE_UXUIDGID (14.91 KB, patch)
2019-06-14 20:57 UTC, Patrick Calhoun
no flags Details | Diff


Links
System ID Priority Status Summary Last Updated
Red Hat Bugzilla 1139053 None CLOSED The -X option to unzip has never worked on Unix/Linux. 2019-08-06 13:13:59 UTC

Description Patrick Calhoun 2019-06-14 20:56:48 UTC
Created attachment 1580839 [details]
Patch to process.c for UID/GID restoration

Description of problem:
(Same as Fedora Bug https://bugzilla.redhat.com/show_bug.cgi?id=1139053)

Files extracted with unzip are owned by root:root even when -X is specified.

Version-Release number of selected component (if applicable):
unzip-6.0-20.el7

How reproducible:
Always

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/*/*

Actual results:
All extracted files are owned by root:root.

Expected results:
Extracted files should have correct owner and group IDs.

Additional info:
The code for -X depends on preprocessor definitions that are never defined.
This bug has been patched in Debian, and fc19+.

Comment 2 Patrick Calhoun 2019-06-14 20:57:40 UTC
Created attachment 1580840 [details]
Spec file updates to apply patch and enable IZ_HAVE_UXUIDGID


Note You need to log in before you can comment on or make changes to this bug.