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
This commit is contained in:
Brooks Davis 2012-07-13 20:10:59 +00:00
parent 9efc00598b
commit ba7f643097
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238427

View File

@ -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