fix
Some checks failed
BlockStorage/repertory_mac/pipeline/head There was a failure building this commit
Some checks failed
BlockStorage/repertory_mac/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -456,21 +456,21 @@ auto fuse_base::mount([[maybe_unused]] std::vector<std::string> orig_args,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = utils::launchctl_command(utils::launchctl_type::bootout, label_);
|
ret = utils::launchctl_command(label_, utils::launchctl_type::bootout);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
std::cout << fmt::format("WARN: Failed to bootout {}/{}", getuid(),
|
std::cout << fmt::format("WARN: Failed to bootout {}/{}", getuid(),
|
||||||
label_)
|
label_)
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = utils::launchctl_command(utils::launchctl_type::bootstrap, label_);
|
ret = utils::launchctl_command(label_, utils::launchctl_type::bootstrap);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
std::cout << fmt::format("WARN: Failed to bootstrap {}/{}", getuid(),
|
std::cout << fmt::format("WARN: Failed to bootstrap {}/{}", getuid(),
|
||||||
label_)
|
label_)
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = = utils::launchctl_command(utils::launchctl_type::kickstart, label_);
|
ret = = utils::launchctl_command(label_, utils::launchctl_type::kickstart);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
std::cerr << fmt::format("FATAL: Failed to kickstart {}/{}", getuid(),
|
std::cerr << fmt::format("FATAL: Failed to kickstart {}/{}", getuid(),
|
||||||
label_)
|
label_)
|
||||||
@@ -922,7 +922,7 @@ auto fuse_base::unmount(const std::string &mount_location) -> int {
|
|||||||
if (utils::file::file{
|
if (utils::file::file{
|
||||||
utils::path::combine("~", {"/Library/LaunchAgents", label_})}
|
utils::path::combine("~", {"/Library/LaunchAgents", label_})}
|
||||||
.exists()) {
|
.exists()) {
|
||||||
return utils::launchctl_command(utils::launchctl_type::bootout, label_);
|
return utils::launchctl_command(label_, utils::launchctl_type::bootout);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto cmd = "umount \"" + mount_location + "\" >/dev/null 2>&1";
|
auto cmd = "umount \"" + mount_location + "\" >/dev/null 2>&1";
|
||||||
|
Reference in New Issue
Block a user