sandbox: Don't make logfile directory r/w as we have a handle already opened
このコミットが含まれているのは:
@@ -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);
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする