mirror of
https://github.com/lxsang/ant-http
synced 2024-11-16 00:28:21 +01:00
database path shall only accessed by root
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
This commit is contained in:
parent
6c39e969a4
commit
a96523c218
@ -126,7 +126,7 @@ static int config_handler(void *conf, const char *section, const char *name,
|
|||||||
free(pconfig->db_path);
|
free(pconfig->db_path);
|
||||||
pconfig->db_path = strdup(value);
|
pconfig->db_path = strdup(value);
|
||||||
if (stat(pconfig->db_path, &st) == -1)
|
if (stat(pconfig->db_path, &st) == -1)
|
||||||
mkdirp(pconfig->db_path, 0755);
|
mkdirp(pconfig->db_path, 0700);
|
||||||
}
|
}
|
||||||
else if (MATCH("SERVER", "tmpdir"))
|
else if (MATCH("SERVER", "tmpdir"))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user