From f48e043d3931b27325d5bd6cd895ea87e38dc6cb Mon Sep 17 00:00:00 2001 From: bapt Date: Fri, 8 Dec 2017 10:47:29 +0000 Subject: [PATCH] MFC r326527: 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 git-svn-id: svn://svn.freebsd.org/base/stable/10@326688 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- 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 b0b628764..8ba7be766 100755 --- a/usr.bin/man/man.sh +++ b/usr.bin/man/man.sh @@ -176,7 +176,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 -- 2.45.0