From 496ca26193e30230c43eab2a7f5bf3209888f82c Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 8 Apr 2024 19:14:49 -0500 Subject: [PATCH] fuse_open.cpp --- src/fuse_open.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/fuse_open.cpp b/src/fuse_open.cpp index 2dccb202..975e0243 100644 --- a/src/fuse_open.cpp +++ b/src/fuse_open.cpp @@ -287,9 +287,18 @@ namespace FUSE cfg->link_cow, cfg->nfsopenhack); - if((rv != 0) || (cfg->passthrough == false)) + if(rv != 0) return rv; - return l::passthrough(fc,ffi_); + uint64_t x = combine(cfg->passthrough,ffi_->flags); + switch(x) + { + case combine(PassthroughEnum::ro,O_RDONLY): + case combine(PassthroughEnum::wo,O_WRONLY): + case combine(PassthroughEnum::rw,O_RDWR): + return l::passthrough(fc,ffi_); + } + + return rv; } }