https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278378

            Bug ID: 278378
           Summary: man(1) ignores corrupt gzip'd manual pages
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: [email protected]
          Reporter: [email protected]

man(1) ignores errors from gzip if a file is corrupt. You can see the errors
from gzip on stderr, but the exit status of man(1) will be zero.

How to repeat:

$ touch /tmp/bla.1.gz

$ /usr/bin/man /tmp/bla.1.gz >/dev/null; echo $?
gzcat: /tmp/bla.1.gz: unexpected end of file
gzcat: /tmp/bla.1.gz: unexpected end of file
gzcat: /tmp/bla.1.gz: unexpected end of file
0

In case of an error, man(1) should exit with a non-zero status.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to