cleanup
Some checks failed
BlockStorage/repertory_mac/pipeline/head There was a failure building this commit
BlockStorage/repertory/pipeline/head There was a failure building this commit

This commit is contained in:
2025-08-06 08:22:56 -05:00
parent cac52f739f
commit f83b5d8d07

View File

@@ -422,7 +422,12 @@ auto fuse_base::mount([[maybe_unused]] std::vector<std::string> orig_args,
fuse_parse_cmdline(&f_args, &opts);
mount_location = opts.mountpoint;
#else // FUSE_USE_VERSION < 30
auto res = fuse_parse_cmdline(&f_args, &mount_location, nullptr, nullptr);
ret = fuse_parse_cmdline(&f_args, &mount_location, nullptr, nullptr);
if (ret != 0) {
std::cerr << "FATAL: Failed to process fuse command line options"
<< std::endl;
return -1;
}
#endif // FUSE_USE_VERSION >= 30
if (mount_location != nullptr) {
@@ -481,8 +486,16 @@ auto fuse_base::mount([[maybe_unused]] std::vector<std::string> orig_args,
}
#endif // defined(__APPLE__)
if (not foreground_) {
repertory::project_cleanup();
}
notify_fuse_args_parsed(args);
#if FUSE_USE_VERSION < 30
umask(0);
#endif // FUSE_USE_VERSION < 30
ret = fuse_main(
static_cast<int>(fuse_argv.size()),
reinterpret_cast<char **>(const_cast<char **>(fuse_argv.data())),