aboutsummaryrefslogtreecommitdiff
path: root/lib/mount.c
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <mszeredi@suse.cz>2011-08-31 12:55:06 +0200
committerGravatar Miklos Szeredi <mszeredi@suse.cz>2011-08-31 12:55:06 +0200
commit0131407f4e1a376b9165adca656d799c30af6311 (patch)
treef18ac5cb56b5c0c12ed7cdb66275933270006c41 /lib/mount.c
parent394380fe50cf1a2295b019fad46035bf8f972d6f (diff)
Don't ignore --disable-mtab
If configured with --disable-mtab then don't call mount(8) from libfuse to update the mtab. Reported by: James Sierp
Diffstat (limited to 'lib/mount.c')
-rw-r--r--lib/mount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mount.c b/lib/mount.c
index a159a14..be7b4cb 100644
--- a/lib/mount.c
+++ b/lib/mount.c
@@ -523,6 +523,7 @@ static int fuse_mount_sys(const char *mnt, struct mount_opts *mo,
}
#ifndef __NetBSD__
+#ifndef IGNORE_MTAB
if (geteuid() == 0) {
char *newmnt = fuse_mnt_resolve_path("fuse", mnt);
res = -1;
@@ -535,6 +536,7 @@ static int fuse_mount_sys(const char *mnt, struct mount_opts *mo,
if (res == -1)
goto out_umount;
}
+#endif /* IGNORE_MTAB */
#endif /* __NetBSD__ */
free(type);
free(source);