From 46e8d9144815dc9c6cfd67923c56d8343045f523 Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 19 Jan 2002 09:01:17 +0000 Subject: [PATCH] Add PAM_CRED_ERR as valid failure case --- libexec/ftpd/ftpd.c | 1 + usr.bin/login/login.c | 1 + 2 files changed, 2 insertions(+) diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 287436a025d2..7558987b0d9e 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1190,6 +1190,7 @@ auth_pam(struct passwd **ppw, const char *pass) break; case PAM_AUTH_ERR: + case PAM_CRED_ERR: case PAM_USER_UNKNOWN: case PAM_MAXTRIES: rval = 1; diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 59707b51a408..2c8fcea28d3e 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -802,6 +802,7 @@ auth_pam() break; case PAM_AUTH_ERR: + case PAM_CRED_ERR: case PAM_USER_UNKNOWN: case PAM_MAXTRIES: rval = 1;