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.
Fixed by 14a5c1068d3751173dc41f3097b12e95791b2160