diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2005-01-05 16:15:26 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2005-01-05 16:15:26 +0000 |
commit | 6a117d5418f224a668a0a58d6299c212357a1972 (patch) | |
tree | 4e814153e8c52c09ac43ecead94efbbe524fb5ff /modules/pam_unix | |
parent | c012723f3aaa312500c22a7243db20bc5ebc4b38 (diff) | |
download | pam-6a117d5418f224a668a0a58d6299c212357a1972.tar.gz pam-6a117d5418f224a668a0a58d6299c212357a1972.tar.bz2 pam-6a117d5418f224a668a0a58d6299c212357a1972.zip |
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.
Diffstat (limited to 'modules/pam_unix')
-rw-r--r-- | modules/pam_unix/support.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } /* |