Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Nov 2018 13:08:35 +0000 (UTC)
From:      Eugene Grosbein <eugen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r340964 - stable/10/usr.bin/makewhatis
Message-ID:  <201811261308.wAQD8Zxn078439@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eugen
Date: Mon Nov 26 13:08:34 2018
New Revision: 340964
URL: https://svnweb.freebsd.org/changeset/base/340964

Log:
  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.

Modified:
  stable/10/usr.bin/makewhatis/makewhatis.local.sh

Modified: stable/10/usr.bin/makewhatis/makewhatis.local.sh
==============================================================================
--- stable/10/usr.bin/makewhatis/makewhatis.local.sh	Mon Nov 26 13:03:34 2018	(r340963)
+++ stable/10/usr.bin/makewhatis/makewhatis.local.sh	Mon Nov 26 13:08:34 2018	(r340964)
@@ -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



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