Commit bb0a6f0c authored by Ruslan Kuprieiev's avatar Ruslan Kuprieiev Committed by Pavel Emelyanov

log: chown log to current criu user

User is already able to see it in stdout, so there is no
reason why we should protect it.
Signed-off-by: 's avatarRuslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e2c3ad37
......@@ -86,6 +86,11 @@ int log_init(const char *output)
pr_perror("Can't create log file %s", output);
return -1;
}
if (cr_fchown(new_logfd)) {
pr_perror("Can't chown log file %s", output);
return -1;
}
} else {
new_logfd = dup(DEFAULT_LOGFD);
if (new_logfd < 0) {
......
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