aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.rst1
-rw-r--r--sshfs.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog.rst b/ChangeLog.rst
index 556d27e..13b1916 100644
--- a/ChangeLog.rst
+++ b/ChangeLog.rst
@@ -4,6 +4,7 @@ Unreleased Changes
* Make utimens(NULL) result in timestamp "now" -- no more touched files
dated 1970-01-01
* New `createmode` workaround.
+* Fix `fstat` workaround regression.
Release 3.3.2 (2018-04-29)
--------------------------
diff --git a/sshfs.c b/sshfs.c
index e62c45a..5ae54c5 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -3158,7 +3158,7 @@ static int sshfs_getattr(const char *path, struct stat *stbuf,
struct buffer outbuf;
struct sshfs_file *sf = NULL;
- if (fi != NULL || sshfs.fstat_workaround) {
+ if (fi != NULL && !sshfs.fstat_workaround) {
sf = get_sshfs_file(fi);
if (!sshfs_file_is_conn(sf))
return -EIO;