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
This commit is contained in:
Baptiste Daroussin 2017-12-04 12:51:05 +00:00
parent d9405a926c
commit 625490e842
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326527

View file

@ -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