cleanup
This commit is contained in:
@@ -422,7 +422,12 @@ auto fuse_base::mount([[maybe_unused]] std::vector<std::string> orig_args,
|
|||||||
fuse_parse_cmdline(&f_args, &opts);
|
fuse_parse_cmdline(&f_args, &opts);
|
||||||
mount_location = opts.mountpoint;
|
mount_location = opts.mountpoint;
|
||||||
#else // FUSE_USE_VERSION < 30
|
#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
|
#endif // FUSE_USE_VERSION >= 30
|
||||||
|
|
||||||
if (mount_location != nullptr) {
|
if (mount_location != nullptr) {
|
||||||
@@ -481,8 +486,16 @@ auto fuse_base::mount([[maybe_unused]] std::vector<std::string> orig_args,
|
|||||||
}
|
}
|
||||||
#endif // defined(__APPLE__)
|
#endif // defined(__APPLE__)
|
||||||
|
|
||||||
|
if (not foreground_) {
|
||||||
|
repertory::project_cleanup();
|
||||||
|
}
|
||||||
|
|
||||||
notify_fuse_args_parsed(args);
|
notify_fuse_args_parsed(args);
|
||||||
|
|
||||||
|
#if FUSE_USE_VERSION < 30
|
||||||
|
umask(0);
|
||||||
|
#endif // FUSE_USE_VERSION < 30
|
||||||
|
|
||||||
ret = fuse_main(
|
ret = fuse_main(
|
||||||
static_cast<int>(fuse_argv.size()),
|
static_cast<int>(fuse_argv.size()),
|
||||||
reinterpret_cast<char **>(const_cast<char **>(fuse_argv.data())),
|
reinterpret_cast<char **>(const_cast<char **>(fuse_argv.data())),
|
||||||
|
Reference in New Issue
Block a user