Hide Forgot
+++ This bug was initially created as a clone of Bug #880084 +++ +++ 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"
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://access.redhat.com/errata/RHBA-2017:2003