summaryrefslogtreecommitdiff
path: root/tools/ck-log-system-restart.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ck-log-system-restart.c')
-rw-r--r--tools/ck-log-system-restart.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/ck-log-system-restart.c b/tools/ck-log-system-restart.c
index e53670f..0b022f2 100644
--- a/tools/ck-log-system-restart.c
+++ b/tools/ck-log-system-restart.c
@@ -98,7 +98,10 @@ retry:
goto out;
}
- fchown (fd, 0, 0);
+ if (fchown (fd, 0, 0) == -1) {
+ g_warning ("Error changing owner of log file (%s)",
+ g_strerror (errno));
+ }
file = fdopen (fd, "a");
if (file == NULL) {