diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2012-07-13 20:10:59 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2012-07-13 20:10:59 +0000 |
commit | ba7f643097c267264977d8d74a0ec478ee05fec5 (patch) | |
tree | d40de01f38caf374d6d34ac1c01826ce717da647 /etc/rc.d/tmp | |
parent | 9efc00598b0076f38811d6356218eafce988a4c0 (diff) | |
download | src-ba7f643097c267264977d8d74a0ec478ee05fec5.tar.gz src-ba7f643097c267264977d8d74a0ec478ee05fec5.zip |
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
Notes
Notes:
svn path=/head/; revision=238427
Diffstat (limited to 'etc/rc.d/tmp')
-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 837259889095..593174de59b5 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 |