Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Oct 2018 17:15:59 +0000 (UTC)
From:      Eugene Grosbein <eugen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339817 - head/libexec/makewhatis.local
Message-ID:  <201810271715.w9RHFxqD024591@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eugen
Date: Sat Oct 27 17:15:58 2018
New Revision: 339817
URL: https://svnweb.freebsd.org/changeset/base/339817

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

Modified:
  head/libexec/makewhatis.local/makewhatis.local.sh

Modified: head/libexec/makewhatis.local/makewhatis.local.sh
==============================================================================
--- head/libexec/makewhatis.local/makewhatis.local.sh	Sat Oct 27 16:41:34 2018	(r339816)
+++ head/libexec/makewhatis.local/makewhatis.local.sh	Sat Oct 27 17:15:58 2018	(r339817)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810271715.w9RHFxqD024591>