The Samba-Bugzilla – Bug 4781
umount.cifs can't clean up /etc/mtab if trailing slashes used
Last modified: 2007-11-16 15:33:48 UTC
If umount.cifs is called by a user to unmount a user-mounted filesystem, the /etc/mtab entry will not be cleaned up if the mount point is specified on the commandline with a trailing slash.
The reason for this is that mount points are canonicalized within /etc/mtab with no trailing slash, but umount.cifs compares the mountpoint values in /etc/mtab to the commandline option without trimming trailing slashes.
Patch to follow.
Created attachment 2812 [details]
trim trailing slashes to canonicalize mountpoint names on unmount
Simple patch to canonicalize any mountpoint names passed to umount.cifs by removing trailing slashes
Committed for v3-2-test in:
and for v3-0-test in: