From 6a117d5418f224a668a0a58d6299c212357a1972 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Wed, 5 Jan 2005 16:15:26 +0000 Subject: Relevant BUGIDs: 872945 Purpose of commit: bugfix Commit summary: --------------- Calling pam_chauthtok of pam_unix and entering the correct old password, but abort on typing the new one, PAM_AUTHTOK_RECOVER_ERR is returned. Since we got the old token, PAM_AUTHTOK_ERR needs to be returned. Found by LSB PAM testsuite. --- modules/pam_unix/support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/pam_unix') diff --git a/modules/pam_unix/support.c b/modules/pam_unix/support.c index cf01e3c2..84114884 100644 --- a/modules/pam_unix/support.c +++ b/modules/pam_unix/support.c @@ -897,7 +897,7 @@ int _unix_read_password(pam_handle_t * pamh return PAM_AUTHTOK_RECOVER_ERR; /* didn't work */ } else if (on(UNIX_USE_AUTHTOK, ctrl) && off(UNIX__OLD_PASSWD, ctrl)) { - return PAM_AUTHTOK_RECOVER_ERR; + return PAM_AUTHTOK_ERR; } } /* -- cgit v1.2.3