From d98c9a77e9941931213b04d2f9366f24dab71732 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Fri, 12 Apr 2024 19:38:34 -0500 Subject: [PATCH] fuse_create.cpp --- src/fuse_create.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/fuse_create.cpp b/src/fuse_create.cpp index b35c0de0..a80826b6 100644 --- a/src/fuse_create.cpp +++ b/src/fuse_create.cpp @@ -282,19 +282,8 @@ namespace FUSE if(rv != 0) return rv; - switch(_(cfg->passthrough,ffi_->flags)) - { - case _(PassthroughEnum::r, O_RDONLY): - case _(PassthroughEnum::r, O_RDWR): - case _(PassthroughEnum::w, O_WRONLY): - case _(PassthroughEnum::w, O_RDWR): - case _(PassthroughEnum::ro,O_RDONLY): - case _(PassthroughEnum::wo,O_WRONLY): - case _(PassthroughEnum::rw,O_RDONLY): - case _(PassthroughEnum::rw,O_WRONLY): - case _(PassthroughEnum::rw,O_RDWR): - return l::passthrough(fc,ffi_); - } + if(cfg->passthrough) + return l::passthrough(fc,ffi_); return rv; }