Skip to content

Commit

Permalink
Ignore fstab-specific mount options
Browse files Browse the repository at this point in the history
Fixes: libfuse#96.
  • Loading branch information
Nikratio committed Sep 26, 2017
1 parent a73dda4 commit 608e7ab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ Unreleased Changes
------------------

* Manpage is now installed in correct directory.
* SSHFS now supports (or rather: ignores) some options that it may
receive as result of being mounted from ``/etc/mtab``. This includes
things like ``user``, ``netdev``, or ``auto``.

SSHFS 3.3.0 (2017-09-20)
------------------------
Expand Down
10 changes: 8 additions & 2 deletions sshfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,15 @@ static struct fuse_opt sshfs_opts[] = {
FUSE_OPT_KEY("writeback_cache=no", FUSE_OPT_KEY_DISCARD),
FUSE_OPT_KEY("unreliable_append", FUSE_OPT_KEY_DISCARD),


FUSE_OPT_END
/* 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
};

static struct fuse_opt workaround_opts[] = {
Expand Down

0 comments on commit 608e7ab

Please sign in to comment.