]> git.michaelhowe.org Git - packages/o/openafs.git/commit
afsd: Trim trailing slashes on Linux mntent
authorAndrew Deason <adeason@sinenomine.net>
Wed, 6 Apr 2011 21:56:22 +0000 (16:56 -0500)
committerDerrick Brashear <shadow@dementix.org>
Fri, 16 Dec 2011 10:58:56 +0000 (02:58 -0800)
commit96ee498f82153285eb463623bb37ec7d625c10af
tree889cb50a48684e5c6d1fb2c232f9934e1f0e4860
parenta9ee7f8f821f73ba0a1dd6a8fd8ed4abc8ef9040
afsd: Trim trailing slashes on Linux mntent

When we write a mount entry on Linux when mounting /afs, trim trailing
slashes on the mount path. Otherwise, the umount utility can get
slightly confused, and leave the /afs mount entry in /etc/mtab after
it's been unmounted.

For full correctness we should probably completely canonicalize the
path like the mount utility does, but it's unlikely that anyone will
provide significantly weird paths for cacheMountDir, so don't bother.

Reviewed-on: http://gerrit.openafs.org/4442
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 325443e6178f9dcdba7326bdb675447ac72bd540)

Change-Id: I9832fad8a43278c5eb618e4148c71f8a9ef81e87
Reviewed-on: http://gerrit.openafs.org/6283
Tested-by: Derrick Brashear <shadow@dementix.org>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/afsd/afsd_kernel.c