mirror of https://git.kore.io/kore.git
The access log need not be executable.
While there use the nice defines rather then straight up mode numbers.
This commit is contained in:
parent
cc6a424a82
commit
06abae3967
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue