diff --git a/src/fuse_open.cpp b/src/fuse_open.cpp index 41fff404..dad8893e 100644 --- a/src/fuse_open.cpp +++ b/src/fuse_open.cpp @@ -279,6 +279,7 @@ namespace FUSE ffi_->noflush = !l::calculate_flush(cfg->flushonclose, ffi_->flags); + ffi_->flags |= O_RDWR; rv = l::open(cfg->func.open.policy, cfg->branches, fusepath_,