Red Hat Bugzilla – Bug 880084
/usr/bin/zforce does not work
Last modified: 2016-10-20 05:37:03 EDT
+++ 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):
Steps to Reproduce:
1. touch /tmp/test
2. gzip /tmp/test
3. mv /tmp/test.gz /tmp/test
4. zforce /tmp/test
/tmp/test should be renamed to /tmp/test.gz
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"
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.
Created attachment 923846 [details]
edited regexp in origin patch
I think this should be fast-track.
No doc needed. Just zforce will not work, which previously didn't.
(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 :-)