mirror of
https://github.com/lxsang/ant-http
synced 2025-07-27 11:09:48 +02: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:
@ -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"))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user