diff options
Diffstat (limited to 'tools/ck-log-system-start.c')
-rw-r--r-- | tools/ck-log-system-start.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/ck-log-system-start.c b/tools/ck-log-system-start.c index 0860429..b4a29b5 100644 --- a/tools/ck-log-system-start.c +++ b/tools/ck-log-system-start.c @@ -100,7 +100,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) { |