diff options
author | William Hubbs <williamh@gentoo.org> | 2011-08-20 12:38:05 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2011-08-20 12:42:24 -0500 |
commit | 2330978300cd3a677e2a6b70ddc8c2825af03920 (patch) | |
tree | 3e018b4bd4f8bc85c85306600645844f9e879da4 | |
parent | 0c8bea21524c22856fdb8528298b43d6fb20451d (diff) |
Do not update mtab if it is a symbolic link
Reported-by: <junkmailnotread@yahoo.com>
X-Gentoo-Bug: 370037
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=370037
-rw-r--r-- | init.d/mtab.in | 5 |
1 files 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 |