diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2007-04-27 18:08:15 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2007-04-27 18:08:15 +0000 |
commit | ccd1fa686cc1fc2faf067c8ceb10b90950175cc9 (patch) | |
tree | fee61fb474e225010e173e514015b0299bf093e3 /lib/mount.c | |
parent | ccf0be03c3f6ec094b18c53c0606dafadb1e5423 (diff) |
libfuse: call umount(8) directly...
Diffstat (limited to 'lib/mount.c')
-rw-r--r-- | lib/mount.c | 5 |
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; |