From 64d0a97a6fa70420cb289f39886e3d6c585609d5 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 8 Apr 2024 19:02:52 -0500 Subject: [PATCH] fuse_create.cpp --- src/fuse_create.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: