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

Bu işleme şunda yer alıyor:
2025-12-22 10:14:02 +01:00
ebeveyn 2594442674
işleme fae81f2213

Dosyayı Görüntüle

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