diff options
author | brooks <brooks@FreeBSD.org> | 2012-07-13 20:10:59 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2012-07-13 20:10:59 +0000 |
commit | dcf55fc954a4734091ffa1ae417a40603727e799 (patch) | |
tree | d40de01f38caf374d6d34ac1c01826ce717da647 | |
parent | 9e28997c88c9c69ac85871e6dac697791f7eac75 (diff) | |
download | FreeBSD-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
-rwxr-xr-x | etc/rc.d/tmp | 2 |
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 |