From 06abae39676241f1d81b6c49198fded06330f573 Mon Sep 17 00:00:00 2001 From: Thordur Bjornsson Date: Tue, 19 Nov 2013 17:27:14 +0100 Subject: [PATCH] The access log need not be executable. While there use the nice defines rather then straight up mode numbers. --- src/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 6f9480e..4c20c85 100644 --- a/src/config.c +++ b/src/config.c @@ -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);