summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiaran <ciaran@hypokrites.me>2022-12-20 16:44:50 -0800
committerNikolaus Rath <Nikolaus@rath.org>2023-01-02 10:53:24 +0000
commit40b0cf9029e9c4d314c12200022e0e81ea8f99da (patch)
tree106a50edc79ac82bdcc3e724daf288d1a76e55df
parent5aaec929a4e4fe1f3113e4dc6a1469090511207b (diff)
downloadfuse-40b0cf9029e9c4d314c12200022e0e81ea8f99da.tar.gz
update mount.c, in order to pass through -n.
autofs uses automount, which calls fuse, during an sshfs call. fuse complains about -n being an unknown option (ref. https://github.com/libfuse/libfuse/issues/715) this one line edit provides the command to be accepted, and pass through, allowing autofs-automount to operate on the mount, even though it is already in the mtab, given the nature of autofs/automount.
-rw-r--r--lib/mount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mount.c b/lib/mount.c
index 979f8d9..484bf40 100644
--- a/lib/mount.c
+++ b/lib/mount.c
@@ -97,6 +97,7 @@ static const struct fuse_opt fuse_mount_opts[] = {
FUSE_OPT_KEY("rootcontext=", KEY_KERN_OPT),
FUSE_OPT_KEY("max_read=", KEY_KERN_OPT),
FUSE_OPT_KEY("user=", KEY_MTAB_OPT),
+ FUSE_OPT_KEY("-n", KEY_MTAB_OPT),
FUSE_OPT_KEY("-r", KEY_RO),
FUSE_OPT_KEY("ro", KEY_KERN_FLAG),
FUSE_OPT_KEY("rw", KEY_KERN_FLAG),