ignore fstab-specific mount options
see: <https://github.com/libfuse/sshfs/issues/96>
This commit is contained in:
8
ftpfs.c
8
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
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user