mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 00:33:30 +00:00
makewhatis: do not try to operate on read-only mounted directories
just to fail later. MFC after: 1 month
This commit is contained in:
parent
a9dea3d2ba
commit
4a36780b2a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339817
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user