From: Mark Eichin Date: Sat, 24 Feb 1996 02:26:19 +0000 (+0000) Subject: more changes from cygnus source X-Git-Tag: krb5-1.0-beta6~483 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5637ea19be70c9ab80a1d59636f9043118cefb89;p=krb5.git more changes from cygnus source Fri Feb 16 15:51:59 1996 Mark Eichin * ftpcmd.y (yylex): error handling changes from kbalk@hp.com. Tue Jan 16 18:44:42 1996 Mark Eichin * ftpd.c (user): 331 is more appropriate for kuserok failure. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7512 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/gssftp/ftpd/ChangeLog b/src/appl/gssftp/ftpd/ChangeLog index 9eed4bedf..010009f4b 100644 --- a/src/appl/gssftp/ftpd/ChangeLog +++ b/src/appl/gssftp/ftpd/ChangeLog @@ -1,3 +1,11 @@ +Fri Feb 16 15:51:59 1996 Mark Eichin + + * ftpcmd.y (yylex): error handling changes from kbalk@hp.com. + +Tue Jan 16 18:44:42 1996 Mark Eichin + + * ftpd.c (user): 331 is more appropriate for kuserok failure. + Wed Feb 7 13:33:41 1996 Ezra Peisach * Makefile.in (clean): Remove ftpd diff --git a/src/appl/gssftp/ftpd/ftpcmd.y b/src/appl/gssftp/ftpd/ftpcmd.y index d89b9d746..31b5d62b4 100644 --- a/src/appl/gssftp/ftpd/ftpcmd.y +++ b/src/appl/gssftp/ftpd/ftpcmd.y @@ -1123,6 +1123,11 @@ yylex() dologout(0); } (void) alarm(0); + + /* If getline() finds an error, the string is null */ + if (*cbuf == '\0') + continue; + #ifdef SETPROCTITLE if (strncasecmp(cbuf, "PASS", 4) != NULL) setproctitle("%s: %s", proctitle, cbuf); diff --git a/src/appl/gssftp/ftpd/ftpd.c b/src/appl/gssftp/ftpd/ftpd.c index 375fa19ea..5a5a287a5 100644 --- a/src/appl/gssftp/ftpd/ftpd.c +++ b/src/appl/gssftp/ftpd/ftpd.c @@ -598,7 +598,7 @@ user(name) kdata.pinst, kdata.prealm, kerb_ok ? "" : " not", name, kerb_ok ? "" : "; Password required."); - reply(kerb_ok ? 232 : 336, "%s", buf); + reply(kerb_ok ? 232 : 331, "%s", buf); syslog(kerb_ok ? LOG_INFO : LOG_ERR, "%s", buf); } else #endif /* KERBEROS */