umount.cifs: do not attempt to update /etc/mtab if it is symbolic link
commitb80b062d1838b25d653dff0da4dca7f526ea065b
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>
Mon, 27 Jul 2009 16:02:35 +0000 (27 12:02 -0400)
committerKarolin Seeger <kseeger@samba.org>
Tue, 20 Oct 2009 13:00:15 +0000 (20 15:00 +0200)
tree2c38f6cc621c7e047daed39dadbd345e719479f4
parent7439cd5efa50058741c57857109690e4a104f9f0
umount.cifs: do not attempt to update /etc/mtab if it is symbolic link

If /etc/mtab is a symbolic link to e.g. /proc/mounts, do not update it.

This is a fix for a bug reported in 4675 on samba bugzilla

Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
(cherry picked from commit a869e4253a87f9a5e13dbe87b2799f8683d238d7)

Fixes bug #4675.
(cherry picked from commit f710535e947008a083b49d8a3faa117208616d7f)
source3/client/umount.cifs.c