From 8e2dbf775a1d4fd087c573a4c3d0fdfe79bfe1cc Mon Sep 17 00:00:00 2001 From: Eugene Grosbein Date: Mon, 26 Nov 2018 13:01:51 +0000 Subject: [PATCH] MFC r339817: makewhatis: do not try to operate on read-only mounted directories just to fail later. --- libexec/makewhatis.local/makewhatis.local.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/makewhatis.local/makewhatis.local.sh b/libexec/makewhatis.local/makewhatis.local.sh index 777c0c0153c..d6293a556e8 100644 --- a/libexec/makewhatis.local/makewhatis.local.sh +++ b/libexec/makewhatis.local/makewhatis.local.sh @@ -47,10 +47,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