Fix for bug #4781: allow cleaning of /etc/mtab by canonicalizing mountpoint.
authorMichael Adam <obnox@samba.org>
Fri, 16 Nov 2007 21:26:26 +0000 (22:26 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 16 Nov 2007 21:26:26 +0000 (22:26 +0100)
commit5267c9d2e6ff95687a7121e91496da3ae742d282
tree627e4d5849874e7be26b6d00016d5a70a33a1c8c
parentb3976c2ea25732a9f939fbc23020b7ab54c67783
Fix for bug #4781: allow cleaning of /etc/mtab by canonicalizing mountpoint.

Canonicalize mountpoint by trimming trailing slashes before unmounting.
This allows for correct cleanup of /etc/mtab after unmounting.

Thanks to Steve Langasek <vorlon@debian.org>.

Michael
(This used to be commit 118fd6213d5f6419f654e9226a41d527c04346f7)
source3/client/umount.cifs.c