mirror of
https://github.com/pygos/init.git
synced 2024-12-22 23:30:50 +01:00
usyslogd: report error if file operation fails
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
5509e77a1c
commit
f51dca0878
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue