From ccd1fa686cc1fc2faf067c8ceb10b90950175cc9 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 27 Apr 2007 18:08:15 +0000 Subject: libfuse: call umount(8) directly... --- lib/mount.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/mount.c') diff --git a/lib/mount.c b/lib/mount.c index 0587bac..24bcf8c 100644 --- a/lib/mount.c +++ b/lib/mount.c @@ -276,6 +276,11 @@ void fuse_kern_unmount(const char *mountpoint, int fd) return; } + if (geteuid() == 0) { + fuse_mnt_umount("fuse", mountpoint, 1); + return; + } + res = umount2(mountpoint, 2); if (res == 0) return; -- cgit v1.2.3