Date: Thu, 7 Aug 2008 02:30:40 GMT From: Alex Kozlov <spam@rm-rf.kiev.ua> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/126324: [patch] rc.d/tmp: Prevent mounting /tmp in second time Message-ID: <200808070230.m772UeIX065403@www.freebsd.org> Resent-Message-ID: <200808070240.m772e1c9006346@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 126324
>Category: bin
>Synopsis: [patch] rc.d/tmp: Prevent mounting /tmp in second time
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Aug 07 02:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Alex Kozlov
>Release: FreeBSD 6.3
>Organization:
private
>Environment:
>Description:
Prevent mounting /tmp in second time after switching to singleuser and back.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: src/etc/rc.d/tmp
@@ -43,6 +43,7 @@
#
case "${tmpmfs}" in
[Yy][Ee][Ss])
+ /sbin/umount /tmp 2>/dev/null && echo /tmp was already mounted!
mount_md ${tmpsize} /tmp "${tmpmfs_flags}"
chmod 01777 /tmp
;;
@@ -57,6 +58,7 @@
echo "dropping into shell, ^D to continue anyway."
/bin/sh
else
+ /sbin/umount /tmp 2>/dev/null && echo /tmp was already mounted!
mount_md ${tmpsize} /tmp "${tmpmfs_flags}"
chmod 01777 /tmp
fi
>Release-Note:
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808070230.m772UeIX065403>
