OpenBSD/src XojGZXS — usr.sbin/syslogd syslogd.c
When writing local output, syslogd ignores EAGAIN. Unfortunately it has closed the file descriptor before checking the errno. So f_file contained a bad file descriptor that could be reused at the next open. Keep the file open if errno is EAGAIN. Move the close(2) down where the old file descriptor in f_file is overwritten in all cases. OK deraadt@ jca@
Version | Delta | File | |
---|---|---|---|
1.247 | +5 | -3 | usr.sbin/syslogd/syslogd.c |
+5 | -3 | 1 files |