From 47b9fe83eba73bdb8d00f46538298eb5208ac3f9 Mon Sep 17 00:00:00 2001 From: eugen Date: Mon, 26 Nov 2018 13:08:34 +0000 Subject: [PATCH] makewhatis: do not try to operate on read-only mounted directories just to fail later. This is direct commit to stable/10 instead of MFC r339817 due to makewhatis.local being moved in recent branches. git-svn-id: svn://svn.freebsd.org/base/stable/10@340964 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.bin/makewhatis/makewhatis.local.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/makewhatis/makewhatis.local.sh b/usr.bin/makewhatis/makewhatis.local.sh index 8be25300b..1534ed54e 100644 --- a/usr.bin/makewhatis/makewhatis.local.sh +++ b/usr.bin/makewhatis/makewhatis.local.sh @@ -49,10 +49,10 @@ done dirs=`echo $dirs | sed 's/:/ /g'` case X"$dirs" in X) echo "usage: $0 [options] directories ..."; exit 1;; esac -localdirs=`find -H $dirs -fstype local -type d -prune -print` +localdirs=`find -H $dirs -fstype local \! -fstype rdonly -type d -prune -print` case X"$localdirs" in - X) echo "$0: no local-mounted manual directories found: $dirs" + X) echo "$0: no local rw-mounted manual directories found: $dirs" exit 1;; *) exec `basename $0 .local` $opt $localdirs;; esac -- 2.45.0