From fae81f221331dece2596a6d86563ead3779a7a2a Mon Sep 17 00:00:00 2001 From: "Albert S." Date: Mon, 22 Dec 2025 10:14:02 +0100 Subject: [PATCH] sandbox: Don't make logfile directory r/w as we have a handle already opened --- qswiki.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qswiki.cpp b/qswiki.cpp index 8307a79..c2385ef 100644 --- a/qswiki.cpp +++ b/qswiki.cpp @@ -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 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);