The access log need not be executable.

While there use the nice defines rather then straight up mode
numbers.
This commit is contained in:
Thordur Bjornsson 2013-11-19 17:27:14 +01:00
parent cc6a424a82
commit 06abae3967
1 changed files with 2 additions and 1 deletions

View File

@ -403,7 +403,8 @@ configure_accesslog(char **argv)
}
current_domain->accesslog = open(argv[1],
O_CREAT | O_APPEND | O_WRONLY, 0755);
O_CREAT | O_APPEND | O_WRONLY,
S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if (current_domain->accesslog == -1) {
kore_debug("open(%s): %s", argv[1], errno_s);
return (KORE_RESULT_ERROR);