From 63300fd564de615ba70722347eea45afe1950a33 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Thu, 3 Aug 2017 18:26:19 +0200 Subject: Accept -o cache_* options for backward compatibility. Fixes: #73. --- sshfs.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sshfs.c') diff --git a/sshfs.c b/sshfs.c index 9809057..4f041e0 100644 --- a/sshfs.c +++ b/sshfs.c @@ -423,7 +423,13 @@ static struct fuse_opt sshfs_opts[] = { FUSE_OPT_KEY("-p ", KEY_PORT), FUSE_OPT_KEY("-C", KEY_COMPRESS), FUSE_OPT_KEY("-F ", KEY_CONFIGFILE), + + /* For backwards compatibility */ + SSHFS_OPT("cache=yes", dir_cache, 1), + SSHFS_OPT("cache=no", dir_cache, 0), + FUSE_OPT_END + }; static struct fuse_opt workaround_opts[] = { -- cgit v1.2.3