From dcf55fc954a4734091ffa1ae417a40603727e799 Mon Sep 17 00:00:00 2001 From: brooks Date: Fri, 13 Jul 2012 20:10:59 +0000 Subject: 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 --- etc/rc.d/tmp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/rc.d/tmp b/etc/rc.d/tmp index 8372598..593174d 100755 --- a/etc/rc.d/tmp +++ b/etc/rc.d/tmp @@ -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 -- cgit v1.1