Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Kuprieiev <kupruser@gmail.com>2015-01-29 23:59:30 +0300
committerPavel Emelyanov <xemul@parallels.com>2015-02-10 16:54:33 +0300
commitbb0a6f0cb60312f51a4d38f8854f39c942670d29 (patch)
treeb4749b77517950993c0259766ca3cf17cb928f31
parente2c3ad37912bb4848573e3c8bbf740f166ae78fb (diff)
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: Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
-rw-r--r--log.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/log.c b/log.c
index 0a5eb58b1..a9f1757ef 100644
--- a/log.c
+++ b/log.c
@@ -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) {