From e79322f67079db81f43460daa24a9a9d0d653f84 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sun, 3 Aug 2025 13:26:36 -0500 Subject: [PATCH] fix --- repertory/librepertory/src/drives/fuse/fuse_drive.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repertory/librepertory/src/drives/fuse/fuse_drive.cpp b/repertory/librepertory/src/drives/fuse/fuse_drive.cpp index 505c50cd..039351af 100644 --- a/repertory/librepertory/src/drives/fuse/fuse_drive.cpp +++ b/repertory/librepertory/src/drives/fuse/fuse_drive.cpp @@ -126,7 +126,7 @@ auto fuse_drive::chown_impl(std::string api_path, uid_t uid, gid_t gid) auto fuse_drive::create_impl(std::string api_path, mode_t mode, struct fuse_file_info *file_info) -> api_error { - file_info->fh = 0U; + file_info->fh = INVALID_HANDLE_VALUE; auto is_append_op = ((file_info->flags & O_APPEND) == O_APPEND); auto is_create_op = ((file_info->flags & O_CREAT) == O_CREAT); @@ -249,7 +249,7 @@ auto fuse_drive::create_impl(std::string api_path, mode_t mode, if (res != api_error::success) { #endif // FUSE_USE_VERSION >= 30 fm_->close(handle); - file_info->fh = 0U; + file_info->fh = INVALID_HANDLE_VALUE; errno = std::abs(utils::from_api_error(res)); return res; } @@ -696,7 +696,7 @@ 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; + file_info->fh = INVALID_HANDLE_VALUE; auto mask = (O_RDONLY != (file_info->flags & O_ACCMODE) ? W_OK : R_OK) | X_OK; auto res = check_access(api_path, mask);