From f7e91539cebf8645e8c7fb529578c5a5613e0778 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sun, 4 Feb 2024 22:42:27 -0600 Subject: [PATCH] func_create_ff.cpp --- src/func_create_ff.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/func_create_ff.cpp b/src/func_create_ff.cpp index 3911035a..729ea17a 100644 --- a/src/func_create_ff.cpp +++ b/src/func_create_ff.cpp @@ -31,10 +31,12 @@ namespace l fuse_file_info_t *ffi_) { int rv; + mode_t mode; FileInfo *fi; fs::info_t info; ghc::filesystem::path fullpath; + mode = mode_; for(auto &tier : branches_) { for(auto &branch : tier) @@ -51,8 +53,8 @@ namespace l fullpath = branch.path / fusepath_; - // if(!fs::acl::dir_has_defaults(fullpath)) - // mode_ &= ~umask_; + if(!fs::acl::dir_has_defaults(fullpath)) + mode_ &= ~umask_; rv = fs::open(fullpath,ffi_->flags,mode_); if((rv == -1) && (errno == ENOENT))