svn commit: r326527 - head/usr.bin/man
Baptiste Daroussin
bapt at FreeBSD.org
Mon Dec 4 12:51:06 UTC 2017
Author: bapt
Date: Mon Dec 4 12:51:05 2017
New Revision: 326527
URL: https://svnweb.freebsd.org/changeset/base/326527
Log:
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
Modified:
head/usr.bin/man/man.sh
Modified: head/usr.bin/man/man.sh
==============================================================================
--- head/usr.bin/man/man.sh Mon Dec 4 12:33:46 2017 (r326526)
+++ head/usr.bin/man/man.sh Mon Dec 4 12:51:05 2017 (r326527)
@@ -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
More information about the svn-src-all
mailing list