]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r326526:
authorbapt <bapt@FreeBSD.org>
Fri, 8 Dec 2017 10:42:05 +0000 (10:42 +0000)
committerbapt <bapt@FreeBSD.org>
Fri, 8 Dec 2017 10:42:05 +0000 (10:42 +0000)
commitd898f5623435c872554b162801a7e4b9880ec202
tree48c0ab5e04aa3021ba03392c99693224179dd1be
parentc5786263127447bafbb55eaee331c95fa21258b1
MFC r326526:

In case man(1) found a catpage to display skip looking ".so" which is manpage
only.

In case we are trying to read a catpage, the manpage variable is not defined.
It results in the "cattool" having no arguments.

In case the catpage is compressed, the cattool used is "zcat" which dies if the
standard input is a terminal, meaning the function calling it is exiting as if
there were no ".so"
In case the catpage is uncompressed, the cattool used is "zcat -f" which waits
reading standard input, making the man(1) command hang.

PR: 223560
Reported by: wosch
usr.bin/man/man.sh