Bug 880084 - /usr/bin/zforce does not work
/usr/bin/zforce does not work
Status: ASSIGNED
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gzip (Show other bugs)
6.3
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: pstodulk
qe-baseos-daemons
: EasyFix, FastFix, Patch
Depends On: 880081
Blocks: 1356044 1254457
  Show dependency treegraph
 
Reported: 2012-11-26 03:07 EST by manuel wolfshant
Modified: 2016-07-28 05:11 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 880081
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
easy-patch (431 bytes, patch)
2014-08-04 07:33 EDT, pstodulk
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
CentOS 6096 None None None Never

  None (edit)
Description manuel wolfshant 2012-11-26 03:07:52 EST
+++ 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 Product and Program Management 2013-10-13 20:14:15 EDT
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 pstodulk 2014-08-04 07:33:08 EDT
Created attachment 923846 [details]
easy-patch

edited regexp in origin patch
Comment 4 pstodulk 2014-08-04 07:35:39 EDT
I think this should be fast-track.

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