Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Apr 2024 12:59:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 278378] man(1) ignores corrupt gzip'd manual pages
Message-ID:  <bug-278378-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278378

            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?bug-278378-227>