fix
Some checks failed
BlockStorage/repertory_mac/pipeline/head This commit looks good
BlockStorage/repertory/pipeline/head There was a failure building this commit

This commit is contained in:
2025-08-03 10:54:18 -05:00
parent 7c2ecd3340
commit 10e7f72eab
2 changed files with 3 additions and 1 deletions

View File

@@ -696,6 +696,8 @@ auto fuse_drive::open_impl(std::string api_path,
auto fuse_drive::opendir_impl(std::string api_path,
struct fuse_file_info *file_info) -> api_error {
file_info->fh = 0U;
auto mask = (O_RDONLY != (file_info->flags & O_ACCMODE) ? W_OK : R_OK) | X_OK;
auto res = check_access(api_path, mask);
if (res != api_error::success) {

View File

@@ -553,7 +553,7 @@ TYPED_TEST(fuse_test, create_open_fails_if_path_does_not_exist) {
O_WRONLY,
};
std::string file_name{"create_test"};
std::string file_name{"create_test_not_found"};
auto file_path = this->create_file_path(file_name);
for (const auto &flags : ops) {