]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r326526:
authorbapt <bapt@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 8 Dec 2017 10:44:44 +0000 (10:44 +0000)
committerbapt <bapt@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 8 Dec 2017 10:44:44 +0000 (10:44 +0000)
commita48577b8afd1d3cc53439c976c4a44d9cf652050
treeb80c1cacd872fcc14a787e1b367cdc0b619e879b
parentf5392fa1a4c7df067f783a12efc63720a4cfafdc
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@326686 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/man/man.sh