sandbox: Don't make logfile directory r/w as we have a handle already opened

这个提交包含在:
2025-12-22 10:14:02 +01:00
父节点 2594442674
当前提交 fae81f2213

查看文件

@@ -182,7 +182,6 @@ int main(int argc, char **argv)
if(!sandbox->enable({ if(!sandbox->enable({
config.configVarResolver.getConfig("cache_fs_dir"), config.configVarResolver.getConfig("cache_fs_dir"),
config.templatepath, config.templatepath,
std::filesystem::path(config.logfile).parent_path(),
std::filesystem::path(config.connectionstring).parent_path(), std::filesystem::path(config.connectionstring).parent_path(),
})) }))
{ {
@@ -217,8 +216,7 @@ int main(int argc, char **argv)
User::setAnon(anon.value()); User::setAnon(anon.value());
MapCache<TemplatePage> mapCache; MapCache<TemplatePage> mapCache;
Template siteTemplate{config.templateprefix, config.urls, config.configVarResolver, Template siteTemplate{config.templateprefix, config.urls, config.configVarResolver, mapCache};
mapCache};
if(!config.templatepath.empty()) if(!config.templatepath.empty())
{ {
siteTemplate.setPath(config.templatepath); siteTemplate.setPath(config.templatepath);