Add option to lazy umount target mount point

This commit is contained in:
Antonio SJ Musumeci 2023-02-01 23:05:45 -05:00
parent 9a6b7835f4
commit 9adddfc66d
10 changed files with 103 additions and 9 deletions

View file

@ -378,7 +378,7 @@ check_for_mount_loop(Config::Write &cfg_,
fs::PathVector branches;
std::error_code ec;
mount = (std::string)cfg_->mount;
mount = (std::string)cfg_->mountpoint;
branches = cfg_->branches->to_paths();
for(const auto &branch : branches)
{
@ -416,7 +416,7 @@ namespace options
if(cfg->branches->empty())
errs_->push_back({0,"branches not set"});
if(cfg->mount->empty())
if(cfg->mountpoint->empty())
errs_->push_back({0,"mountpoint not set"});
check_for_mount_loop(cfg,errs_);