diff options
author | 2016-12-23 18:47:01 -0800 | |
---|---|---|
committer | 2016-12-23 18:47:01 -0800 | |
commit | ac25c153691faea65cbfc1b0781b8b0dab3f4b29 (patch) | |
tree | 5f004ce125166290895fe2c359de93fde15db71f /lib/mount.c | |
parent | 0fa25d046fcf9ea737a2165310dcad53814ffa2f (diff) |
Set IGNORE_MTAB when running under NetBSD
Apparently, NetBSD does not have /etc/mtab. Setting IGNORE_MTAB
in this case makes the code a little nicer.
See also https://github.com/libfuse/libfuse/pull/123
Diffstat (limited to 'lib/mount.c')
-rw-r--r-- | lib/mount.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/mount.c b/lib/mount.c index 2f7e068..2150189 100644 --- a/lib/mount.c +++ b/lib/mount.c @@ -481,7 +481,6 @@ static int fuse_mount_sys(const char *mnt, struct mount_opts *mo, goto out_close; } -#ifndef __NetBSD__ #ifndef IGNORE_MTAB if (geteuid() == 0) { char *newmnt = fuse_mnt_resolve_path("fuse", mnt); @@ -496,7 +495,6 @@ static int fuse_mount_sys(const char *mnt, struct mount_opts *mo, goto out_umount; } #endif /* IGNORE_MTAB */ -#endif /* __NetBSD__ */ free(type); free(source); |