aboutsummaryrefslogtreecommitdiff
path: root/lib/mount.c
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <miklos@szeredi.hu>2010-01-26 18:20:13 +0000
committerGravatar Miklos Szeredi <miklos@szeredi.hu>2010-01-26 18:20:13 +0000
commit8b3a0c74a15e237eb4b7053774600f0ce3fff403 (patch)
tree9de3b1b3a5110c94449bc794565bd1aedb1e4c86 /lib/mount.c
parentd29bc735ad9d10ca2d71e772d432983c8618fb26 (diff)
* Fix race if two "fusermount -u" instances are run in parallel.
Reported by Dan Rosenberg * Make sure that the path to be unmounted doesn't refer to a symlink
Diffstat (limited to 'lib/mount.c')
-rw-r--r--lib/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mount.c b/lib/mount.c
index 941644f..c3b16a4 100644
--- a/lib/mount.c
+++ b/lib/mount.c
@@ -290,7 +290,7 @@ void fuse_kern_unmount(const char *mountpoint, int fd)
}
if (geteuid() == 0) {
- fuse_mnt_umount("fuse", mountpoint, 1);
+ fuse_mnt_umount("fuse", mountpoint, mountpoint, 1);
return;
}