svn commit: r340962 - stable/12/libexec/makewhatis.local

Eugene Grosbein eugen at FreeBSD.org
Mon Nov 26 13:01:53 UTC 2018


Author: eugen
Date: Mon Nov 26 13:01:51 2018
New Revision: 340962
URL: https://svnweb.freebsd.org/changeset/base/340962

Log:
  MFC r339817: makewhatis: do not try to operate on read-only mounted
  directories just to fail later.

Modified:
  stable/12/libexec/makewhatis.local/makewhatis.local.sh
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/libexec/makewhatis.local/makewhatis.local.sh
==============================================================================
--- stable/12/libexec/makewhatis.local/makewhatis.local.sh	Mon Nov 26 12:47:12 2018	(r340961)
+++ stable/12/libexec/makewhatis.local/makewhatis.local.sh	Mon Nov 26 13:01:51 2018	(r340962)
@@ -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


More information about the svn-src-all mailing list