Log username with password failure.

This has proved useful in real life installations.
This commit is contained in:
eivind 1999-11-06 20:58:44 +00:00
parent 3729f7b2f6
commit 861a97e013

View File

@ -168,7 +168,7 @@ void doit(struct sockaddr_in *sinp)
printf("Password: "); fflush(stdout);
errno = 0;
if (readline(passwd, sizeof passwd, 1) < 0) {
syslog(LOG_WARNING, "passwd read: %m");
syslog(LOG_WARNING, "passwd for '%s' read: %m", user);
_exit(1);
}
if (pwdok) {