From 2330978300cd3a677e2a6b70ddc8c2825af03920 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sat, 20 Aug 2011 12:38:05 -0500 Subject: Do not update mtab if it is a symbolic link Reported-by: X-Gentoo-Bug: 370037 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=370037 --- init.d/mtab.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/init.d/mtab.in b/init.d/mtab.in index 23a5e7d9..620fe772 100644 --- a/init.d/mtab.in +++ b/init.d/mtab.in @@ -12,10 +12,9 @@ depend() start() { - # /etc/mtab could be a symlink to a location in /proc - if readlink -f /etc/mtab | grep -sq '^/proc/\(self\|[0-9]\+\)/mounts$' + if [ -l /etc/mtab ] then - einfo "Skipping mtab update (link points to location in /proc)" + einfo "Skipping mtab update (mtab is a symbolic link)" return 0 fi -- cgit v1.2.3