[Bug 14626] New: gunzip -cf fails on uncompressed input

bugzilla at busybox.net bugzilla at busybox.net
Tue Mar 1 17:53:21 UTC 2022


https://bugs.busybox.net/show_bug.cgi?id=14626

            Bug ID: 14626
           Summary: gunzip -cf fails on uncompressed input
           Product: Busybox
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: tchristensen at vet.k-state.edu
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

Trying to decompress uncompressed output with Busybox gunzip will fail even
with
the -cf flag passed. 

Steps to Reproduce
------------------

    echo "uncompressed content" >> file
    gunzip -cf file

Actual Results
--------------

    gunzip: invalid magic

Expected Results
----------------

    uncompressed content

This expected behavior is given by the man page for GNU gunzip:

> -f --force: If the input data is not in a format recognized by gzip, and
> if the option --stdout is also given, copy the input data without change to
> the standard output: let zcat behave as cat.

Build date & Hardware
---------------------

Unknown: I first encountered this in the biocontainers Docker images, and
created the above example with the busybox:1.34.1-uclibc Docker image.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list