svn commit: r326685 - stable/11/usr.bin/man
Baptiste Daroussin
bapt at FreeBSD.org
Fri Dec 8 10:42:07 UTC 2017
Author: bapt
Date: Fri Dec 8 10:42:05 2017
New Revision: 326685
URL: https://svnweb.freebsd.org/changeset/base/326685
Log:
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
Modified:
stable/11/usr.bin/man/man.sh
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.bin/man/man.sh
==============================================================================
--- stable/11/usr.bin/man/man.sh Fri Dec 8 10:31:02 2017 (r326684)
+++ stable/11/usr.bin/man/man.sh Fri Dec 8 10:42:05 2017 (r326685)
@@ -274,6 +274,9 @@ man_check_for_so() {
local IFS line tstr
unset IFS
+ if [ -n "$catpage" ]; then
+ return 0
+ fi
# We need to loop to accommodate multiple .so directives.
while true
More information about the svn-src-stable
mailing list