From: Sam Hartman Date: Sat, 27 Jan 1996 02:58:54 +0000 (+0000) Subject: Oops; I accidentally comitted a version of krlogin X-Git-Tag: krb5-1.0-beta6~555 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f3882a3cc54dc5700951d0dda9d327a6cdd8e2df;p=krb5.git Oops; I accidentally comitted a version of krlogin that didn't even compile. (I tested the binary in the wrong build tree.) Compiled and tested this time. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7397 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index c7f26b9dc..34bbad3da 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -3,6 +3,7 @@ Fri Jan 26 00:37:23 1996 Sam Hartman * krlogin.c (endif ): (reader): Deal with exceptions even while writing. +(reader): Fix bogus select bug; actually select on writing Wed Jan 24 00:34:42 1996 Sam Hartman diff --git a/src/appl/bsd/krlogin.c b/src/appl/bsd/krlogin.c index 34906fe8f..1450a5095 100644 --- a/src/appl/bsd/krlogin.c +++ b/src/appl/bsd/krlogin.c @@ -1336,7 +1336,7 @@ FD_ZERO(&readset); for (;;) { if ((remaining = rcvcnt - (bufp - rcvbuf)) > 0) { - FD_SET(1,&writeset1); + FD_SET(1,&writeset); rcvstate = WRITING; FD_CLR(rem, &readset); } @@ -1349,7 +1349,7 @@ FD_SET(rem,&readset); FD_CLR(1,&writeset); } FD_SET(rem,&excset); - if (select(rem+1, &readset, 0, &excset, 0) > 0 ) { + if (select(rem+1, &readset, &writeset, &excset, 0) > 0 ) { if (FD_ISSET(rem, &excset)) oob(); if (FD_ISSET(1,&writeset)) {