Log username with password failure.

This has proved useful in real life installations.
This commit is contained in:
Eivind Eklund 1999-11-06 20:58:44 +00:00
parent aa510d6741
commit 5bd9ff610a

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) {