From f51dca08787ebb6fb7a37ae2777a5a8a90e9a657 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 19 Aug 2018 10:14:19 +0200 Subject: usyslogd: report error if file operation fails Signed-off-by: David Oberhollenzer --- syslogd/logfile.c | 1 + 1 file changed, 1 insertion(+) (limited to 'syslogd') 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; -- cgit v1.2.3