[901] in Kerberos-V5-bugs
Re: Minor bug in krlogind.c
daemon@ATHENA.MIT.EDU (Theodore Ts'o)
Wed Oct 26 00:20:28 1994
Date: Wed, 26 Oct 1994 00:20:25 +0500
From: Theodore Ts'o <tytso@MIT.EDU>
To: grossa@SDSC.EDU
Cc: krb5-bugs@MIT.EDU
In-Reply-To: [816]
Date: Fri, 30 Sep 94 19:20:25 PDT
From: grossa@SDSC.EDU
In the protocol() function in krlogind.c the read on the pty is not
checked for the POSIX error equivalent for EWOULDBLOCK. The POSIX read
returns -1 and sets errno to EAGAIN (why?) instead. I just added a
#ifdef based on POSIX_SIGNALS since that indicates POSIX and nothing
else really applies. Maybe just checking for both EAGAIN and EWOULDBLOCK
in the same if would be better?
The next release will check for both EAGAIN and EWOULDBLOCK.
- Ted