CVSROOT:        /cvs
Module name:    src
Changes by:     bl...@cvs.openbsd.org   2017/09/17 16:25:22

Modified files:
        usr.sbin/syslogd: syslogd.c 

Log message:
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@

Reply via email to