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 880084 - /usr/bin/zforce does not work
Summary: /usr/bin/zforce does not work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gzip
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Petr Stodulka
QA Contact: Vaclav Danek
URL:
Whiteboard:
Depends On: 880081
Blocks: 1254457 1356044
TreeView+ depends on / blocked
 
Reported: 2012-11-26 08:07 UTC by manuel wolfshant
Modified: 2017-03-21 10:00 UTC (History)
4 users (show)

Fixed In Version: gzip-1.3.12-23.el6
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of: 880081
: 1382054 (view as bug list)
Environment:
Last Closed: 2017-03-21 10:00:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
easy-patch (431 bytes, patch)
2014-08-04 11:33 UTC, Petr Stodulka
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
CentOS 6096 0 None None None Never
Red Hat Bugzilla 1382054 0 high CLOSED /usr/bin/zforce does not work 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2017:0639 0 normal SHIPPED_LIVE gzip bug fix update 2017-03-21 12:31:07 UTC

Internal Links: 1382054

Description manuel wolfshant 2012-11-26 08:07:52 UTC
+++ This bug was initially created as a clone of Bug #880081 +++

Description of problem:
/usr/bin/zforce fails to identify and rename valid gzipped files

Version-Release number of selected component (if applicable):

gzip-1.3.12-18.el6

How reproducible:
always

Steps to Reproduce:
1.	touch /tmp/test
2. gzip /tmp/test
3. mv /tmp/test.gz /tmp/test
4. zforce /tmp/test
  
Actual results:
Nothing happens

Expected results:
/tmp/test should be renamed to /tmp/test.gz

Additional info:

The /usr/bin/zforce utility is a script. Line 61

if gzip -l < "$i" 2>/dev/null | grep '^compressed' > /dev/null; then

is incorrect. The output of gzip -l /tmp/file (see above) is

         compressed uncompressed ratio uncompressed_name
                 25 0 0.0% /tmp/file

so '^compressed' fails because of the spaces printed in front of "compressed"

Comment 2 RHEL Program Management 2013-10-14 00:14:15 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 3 Petr Stodulka 2014-08-04 11:33:08 UTC
Created attachment 923846 [details]
easy-patch

edited regexp in origin patch

Comment 4 Petr Stodulka 2014-08-04 11:35:39 UTC
I think this should be fast-track.

Comment 7 Petr Stodulka 2016-09-30 09:23:41 UTC
No doc needed. Just zforce will not work, which previously didn't.

Comment 9 Petr Stodulka 2016-10-05 15:36:01 UTC
(In reply to pstodulk from comment #7)
> No doc needed. Just zforce will not work, which previously didn't.

Of course, it will work now :-)

Comment 12 errata-xmlrpc 2017-03-21 10:00:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0639.html


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