aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-06-15 03:16:45 -0700
committerNikolaus Rath <Nikolaus@rath.org>2019-06-15 11:16:45 +0100
commitf0c52798b761280583379ba267b0ecc1ea34bbfc (patch)
tree5b641281a836d3059e8427d266398918a7ea0c4c
parent38c947503d05c003ec94f1a783cf5172020d1b0d (diff)
downloadlibfuse-f0c52798b761280583379ba267b0ecc1ea34bbfc.tar.gz
Fix build with IGNORE_MTAB (#425)
chdir_to_parent and check_is_mount are used by should_auto_mount, added in fuse-3.3.0, regardless of whether IGNORE_MTAB is defined.
-rw-r--r--util/fusermount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/fusermount.c b/util/fusermount.c
index 5e0b104..56da6ec 100644
--- a/util/fusermount.c
+++ b/util/fusermount.c
@@ -208,6 +208,7 @@ static int may_unmount(const char *mnt, int quiet)
return 0;
}
+#endif
/*
* Check whether the file specified in "fusermount3 -u" is really a
@@ -395,6 +396,7 @@ static int chdir_to_parent(char *copy, const char **lastp)
return 0;
}
+#ifndef IGNORE_MTAB
/* Check whether the kernel supports UMOUNT_NOFOLLOW flag */
static int umount_nofollow_support(void)
{