Skip site navigation (1)Skip section navigation (2)


| raw e-mail | index | archive | help
            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: bugs@FreeBSD.org
          Reporter: wosch@FreeBSD.org

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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?>