Commit 652363d7 authored by Pavel Emelyanov's avatar Pavel Emelyanov

log: Specify logfile mode when creating one

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 2b175282
......@@ -39,7 +39,7 @@ int log_init(const char *output)
}
if (output) {
new_logfd = open(output, O_CREAT | O_WRONLY);
new_logfd = open(output, O_CREAT | O_WRONLY, 0600);
if (new_logfd < 0) {
pr_perror("Can't create log file %s", output);
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment