aboutsummaryrefslogtreecommitdiff
path: root/lib/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mount.c')
-rw-r--r--lib/mount.c5
1 files changed, 5 insertions, 0 deletions
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;