From: Ciaran Date: Wed, 21 Dec 2022 00:44:50 +0000 (-0800) Subject: update mount.c, in order to pass through -n. X-Git-Tag: fuse-3.13.0~15 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=40b0cf9029e9c4d314c12200022e0e81ea8f99da;p=qemu-gpiodev%2Flibfuse.git 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. --- 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),