From 1a86fc5c297007ebbccbdb53a1a9edfdb026d9dc Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Wed, 6 Aug 2025 07:25:47 -0500 Subject: [PATCH] fix --- repertory/librepertory/include/utils/unix/unix_utils.hpp | 2 +- repertory/librepertory/src/drives/fuse/fuse_base.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/repertory/librepertory/include/utils/unix/unix_utils.hpp b/repertory/librepertory/include/utils/unix/unix_utils.hpp index 10f8b57d..2510b4d2 100644 --- a/repertory/librepertory/include/utils/unix/unix_utils.hpp +++ b/repertory/librepertory/include/utils/unix/unix_utils.hpp @@ -70,5 +70,5 @@ generate_launchd_plist(const std::string &label, std::string plist_path, #endif // defined(__APPLE__) } // namespace repertory::utils -#endif // !_WIN32 +#endif // !defined(_WIN32) #endif // REPERTORY_INCLUDE_UTILS_UNIX_UNIX_UTILS_HPP_ diff --git a/repertory/librepertory/src/drives/fuse/fuse_base.cpp b/repertory/librepertory/src/drives/fuse/fuse_base.cpp index b4703904..be9fb8a1 100644 --- a/repertory/librepertory/src/drives/fuse/fuse_base.cpp +++ b/repertory/librepertory/src/drives/fuse/fuse_base.cpp @@ -456,21 +456,21 @@ auto fuse_base::mount([[maybe_unused]] std::vector orig_args, return -1; } - ret = utils::launchctl_command(launchctl_type::bootout, label_); + ret = utils::launchctl_command(utils::launchctl_type::bootout, label_); if (ret != 0) { std::cout << fmt::format("WARN: Failed to bootout {}/{}", getuid(), label_) << std::endl; } - ret = utils::launchctl_command(launchctl_type::bootstrap, label_); + ret = utils::launchctl_command(utils::launchctl_type::bootstrap, label_); if (ret != 0) { std::cout << fmt::format("WARN: Failed to bootstrap {}/{}", getuid(), label_) << std::endl; } - ret = = utils::launchctl_command(launchctl_type::kickstart, label_); + ret = = utils::launchctl_command(utils::launchctl_type::kickstart, label_); if (ret != 0) { std::cerr << fmt::format("FATAL: Failed to kickstart {}/{}", getuid(), label_) @@ -922,7 +922,7 @@ auto fuse_base::unmount(const std::string &mount_location) -> int { if (utils::file::file{ utils::path::combine("~", {"/Library/LaunchAgents", label_})} .exists()) { - return utils::launchctl_command(launchctl_type::bootout, label_); + return utils::launchctl_command(utils::launchctl_type::bootout, label_); } auto cmd = "umount \"" + mount_location + "\" >/dev/null 2>&1";