From 0131407f4e1a376b9165adca656d799c30af6311 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Wed, 31 Aug 2011 12:55:06 +0200 Subject: 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 --- ChangeLog | 5 +++++ lib/mount.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9ce030c..655bee8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-08-26 Miklos Szeredi + + * If configured with --disable-mtab then don't call mount(8) from + libfuse to update the mtab. Reported by: James Sierp + 2011-08-24 Miklos Szeredi * Use LRU list for cleaning up the cache if the "remember=T" 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); -- cgit v1.2.3