aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-08-19 10:14:19 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-08-19 10:14:19 +0200
commitf51dca08787ebb6fb7a37ae2777a5a8a90e9a657 (patch)
tree268c3802f94f0d0d5f5d6453856190bb753fdf7d
parent5509e77a1c2535854ce91c26182768fee6533f1f (diff)
usyslogd: report error if file operation fails
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
-rw-r--r--syslogd/logfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/syslogd/logfile.c b/syslogd/logfile.c
index 6479bb5..0347ab7 100644
--- a/syslogd/logfile.c
+++ b/syslogd/logfile.c
@@ -108,6 +108,7 @@ static int logfile_open(logfile_t *file)
file->size = sb.st_size;
return 0;
fail:
+ perror(file->filename);
close(file->fd);
file->fd = -1;
return -1;