Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jul 2012 20:11:00 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r238427 - head/etc/rc.d
Message-ID:  <201207132011.q6DKB0El087534@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Fri Jul 13 20:10:59 2012
New Revision: 238427
URL: http://svn.freebsd.org/changeset/base/238427

Log:
  MFP4 214344:
  Tighten the regular expression that checks for an md /tmp such that
  no /tmp mount and an md / isn't improperly matched.
  
  Sponsored by:	DARPA/AFRL

Modified:
  head/etc/rc.d/tmp

Modified: head/etc/rc.d/tmp
==============================================================================
--- head/etc/rc.d/tmp	Fri Jul 13 15:25:10 2012	(r238426)
+++ head/etc/rc.d/tmp	Fri Jul 13 20:10:59 2012	(r238427)
@@ -39,7 +39,7 @@ load_rc_config $name
 
 mount_tmpmfs()
 {
-	if ! /bin/df /tmp | grep -q "^/dev/md[0-9]"; then
+	if ! /bin/df /tmp | grep -q "^/dev/md[0-9].* /tmp"; then
 		mount_md ${tmpsize} /tmp "${tmpmfs_flags}"
 		chmod 01777 /tmp
 	fi



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