From 9adc8d7335d74a0221c523b585eafbdc92f8bd2e Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 31 Mar 2024 22:11:34 +0000 Subject: [PATCH] ignore fstab-specific mount options see: --- ftpfs.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ftpfs.c b/ftpfs.c index 0346354..866a2a4 100644 --- a/ftpfs.c +++ b/ftpfs.c @@ -181,6 +181,14 @@ static struct fuse_opt ftpfs_opts[] = { FUSE_OPT_KEY("--verbose", KEY_VERBOSE), FUSE_OPT_KEY("-V", KEY_VERSION), FUSE_OPT_KEY("--version", KEY_VERSION), + + /* These may come in from /etc/fstab - we just ignore them */ + FUSE_OPT_KEY("auto", FUSE_OPT_KEY_DISCARD), + FUSE_OPT_KEY("noauto", FUSE_OPT_KEY_DISCARD), + FUSE_OPT_KEY("user", FUSE_OPT_KEY_DISCARD), + FUSE_OPT_KEY("nouser", FUSE_OPT_KEY_DISCARD), + FUSE_OPT_KEY("users", FUSE_OPT_KEY_DISCARD), + FUSE_OPT_KEY("_netdev", FUSE_OPT_KEY_DISCARD), FUSE_OPT_END };