svn commit: r238427 - head/etc/rc.d

Brooks Davis brooks at FreeBSD.org
Fri Jul 13 20:11:00 UTC 2012


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


More information about the svn-src-all mailing list