From 625490e8426cb754db2bc9f67da52bb05a386ea0 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Mon, 4 Dec 2017 12:51:05 +0000 Subject: [PATCH] Only skip looking for manpages if both man directory and cat directory are not existing. This allows man(1) to read catpages when no man directories are available at all PR: 223559 Reported by: wosch MFC after: 3 days --- usr.bin/man/man.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh index 3f9244b10869..5bb6d7a342fa 100755 --- a/usr.bin/man/man.sh +++ b/usr.bin/man/man.sh @@ -201,7 +201,7 @@ find_file() { catroot="$catroot/$3" fi - if [ ! -d "$manroot" ]; then + if [ ! -d "$manroot" -a ! -d "$catroot" ]; then return 1 fi decho " Searching directory $manroot" 2