summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2012-07-13 20:10:59 +0000
committerbrooks <brooks@FreeBSD.org>2012-07-13 20:10:59 +0000
commitdcf55fc954a4734091ffa1ae417a40603727e799 (patch)
treed40de01f38caf374d6d34ac1c01826ce717da647 /etc
parent9e28997c88c9c69ac85871e6dac697791f7eac75 (diff)
downloadFreeBSD-src-dcf55fc954a4734091ffa1ae417a40603727e799.zip
FreeBSD-src-dcf55fc954a4734091ffa1ae417a40603727e799.tar.gz
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
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/tmp2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud