From 40b0cf9029e9c4d314c12200022e0e81ea8f99da Mon Sep 17 00:00:00 2001 From: Ciaran Date: Tue, 20 Dec 2022 16:44:50 -0800 Subject: [PATCH] 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. --- lib/mount.c | 1 + 1 file changed, 1 insertion(+) 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), -- 2.30.2