From 10e7f72eabb4c45f914972b28c3a122c27ab55a9 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sun, 3 Aug 2025 10:54:18 -0500 Subject: [PATCH] fix --- repertory/librepertory/src/drives/fuse/fuse_drive.cpp | 2 ++ .../repertory_test/src/fuse_drive_create_and_open_test.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/repertory/librepertory/src/drives/fuse/fuse_drive.cpp b/repertory/librepertory/src/drives/fuse/fuse_drive.cpp index f297de8d..505c50cd 100644 --- a/repertory/librepertory/src/drives/fuse/fuse_drive.cpp +++ b/repertory/librepertory/src/drives/fuse/fuse_drive.cpp @@ -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) { diff --git a/repertory/repertory_test/src/fuse_drive_create_and_open_test.cpp b/repertory/repertory_test/src/fuse_drive_create_and_open_test.cpp index 56edec6b..2fae6940 100644 --- a/repertory/repertory_test/src/fuse_drive_create_and_open_test.cpp +++ b/repertory/repertory_test/src/fuse_drive_create_and_open_test.cpp @@ -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) {