From 4a2acf99a72293977a12a52f619ed19e59a3eeac Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 2 Aug 2024 13:14:29 -0500 Subject: [PATCH] updated build system --- .../include/drives/remote/remote_server_base.hpp | 2 +- .../src/drives/fuse/remotefuse/remote_server.cpp | 16 ++++++++-------- .../repertory_test/src/file_manager_test.cpp | 1 + 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/repertory/librepertory/include/drives/remote/remote_server_base.hpp b/repertory/librepertory/include/drives/remote/remote_server_base.hpp index b9188ea1..91a3a1ad 100644 --- a/repertory/librepertory/include/drives/remote/remote_server_base.hpp +++ b/repertory/librepertory/include/drives/remote/remote_server_base.hpp @@ -1409,7 +1409,7 @@ private: const auto lookup_method_name = ((idx == std::string::npos) ? "::" + method : method.substr(idx - 1)); if (handler_lookup_.find(lookup_method_name) == handler_lookup_.end()) { - message_complete(STATUS_NOT_IMPLEMENTED); + message_complete(static_cast(STATUS_NOT_IMPLEMENTED)); } else { client_pool_.execute( client_id, thread_id, diff --git a/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp b/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp index 0ffb8e61..ba86bdf7 100644 --- a/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp +++ b/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp @@ -1068,15 +1068,15 @@ auto remote_server::winfsp_can_delete(PVOID file_desc, reinterpret_cast(file_desc)), STATUS_INVALID_HANDLE)); if (ret == STATUS_SUCCESS) { - ret = + ret = static_cast( utils::file::is_directory(file_path) - ? (drive_.get_directory_item_count( - utils::path::create_api_path(relative_path)) - ? static_cast(STATUS_DIRECTORY_NOT_EMPTY) - : STATUS_SUCCESS) - : (drive_.is_processing(utils::path::create_api_path(relative_path)) - ? static_cast(STATUS_DEVICE_BUSY) - : STATUS_SUCCESS); + ? drive_.get_directory_item_count( + utils::path::create_api_path(relative_path)) + ? STATUS_DIRECTORY_NOT_EMPTY + : STATUS_SUCCESS + : drive_.is_processing(utils::path::create_api_path(relative_path)) + ? STATUS_DEVICE_BUSY + : STATUS_SUCCESS); } RAISE_REMOTE_FUSE_SERVER_EVENT(function_name, file_path, ret); diff --git a/repertory/repertory_test/src/file_manager_test.cpp b/repertory/repertory_test/src/file_manager_test.cpp index 642fb15d..643b1d20 100644 --- a/repertory/repertory_test/src/file_manager_test.cpp +++ b/repertory/repertory_test/src/file_manager_test.cpp @@ -30,6 +30,7 @@ #include "mocks/mock_upload_manager.hpp" #include "platform/platform.hpp" #include "types/repertory.hpp" +#include "utils/encrypting_reader.hpp" #include "utils/event_capture.hpp" #include "utils/file_utils.hpp" #include "utils/native_file.hpp"