aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/man
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2017-12-04 12:51:05 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2017-12-04 12:51:05 +0000
commit625490e8426cb754db2bc9f67da52bb05a386ea0 (patch)
treee1a7b52bf57b34e9f87b459b7ac58525156bda56 /usr.bin/man
parentd9405a926cc5e004c81262c4503ab122084c73f0 (diff)
Notes
Diffstat (limited to 'usr.bin/man')
-rwxr-xr-xusr.bin/man/man.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh
index 3f9244b108697..5bb6d7a342fa9 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