RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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: CLOSED WONTFIX
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: 2021-03-15 07:36 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-15 07:36:47 UTC
Target Upstream Version:
Embargoed:


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 Private Priority Status Summary Last Updated
Red Hat Bugzilla 1139053 0 unspecified CLOSED The -X option to unzip has never worked on Unix/Linux. 2021-02-22 00:41:40 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

Comment 5 RHEL Program Management 2021-03-15 07:36:47 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


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