diff --git a/src/fuse_create.cpp b/src/fuse_create.cpp index d77e0142..4453331e 100644 --- a/src/fuse_create.cpp +++ b/src/fuse_create.cpp @@ -287,7 +287,7 @@ namespace FUSE if(rv != 0) return rv; - uint64_t x = ((((uint64_t)+cfg->passthrough) << 32)); + uint64_t x = ((((uint64_t)+cfg->passthrough) << 32) | (ffi_->flags & O_ACCMODE)); switch(+cfg->passthrough) { case PassthroughEnum::off: