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({
|
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);
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户