fixed: in Functions::CheckSpecialFile() after parsing new mount points

the cur->mount pointer was pointing at the old mount object
(which may no longer exists)
This commit is contained in:
2021-02-16 17:23:36 +01:00
parent 4625451c85
commit a2b19547a3
2 changed files with 8 additions and 1 deletions

View File

@@ -168,7 +168,9 @@ Error Functions::CheckSpecialFile(const Item & item)
{
log << log3 << "Functions: reloading mount points" << logend;
cur->mount = system->mounts.GetEmptyMount();
system->mounts.ReadMounts(item.content);
cur->mount = system->mounts.pmount;
templates->ReadNewIndexTemplates();
templates->ReadNewChangeTemplates();