diff --git a/configure.ac b/configure.ac index 8dacf3f..742725f 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) -AC_INIT(s3fs, 1.47) +AC_INIT(s3fs, 1.48) AC_CANONICAL_SYSTEM diff --git a/src/s3fs.cpp b/src/s3fs.cpp index ba83bf6..6864c56 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -3041,8 +3041,8 @@ static int s3fs_release(const char *path, struct fuse_file_info *fi) { YIKES(-errno); } - // FIXME: is this required? - delete_stat_cache_entry(path); + if((fi->flags & O_RDWR) || (fi->flags & O_WRONLY)) + delete_stat_cache_entry(path); return 0; }