database path shall only accessed by root
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good

This commit is contained in:
Dany LE 2022-10-03 17:47:37 +02:00 committed by GitHub
parent 6c39e969a4
commit a96523c218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ static int config_handler(void *conf, const char *section, const char *name,
free(pconfig->db_path);
pconfig->db_path = strdup(value);
if (stat(pconfig->db_path, &st) == -1)
mkdirp(pconfig->db_path, 0755);
mkdirp(pconfig->db_path, 0700);
}
else if (MATCH("SERVER", "tmpdir"))
{