From 8b3a0c74a15e237eb4b7053774600f0ce3fff403 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 26 Jan 2010 18:20:13 +0000 Subject: * 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 --- lib/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mount.c') 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; } -- cgit v1.2.3