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

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