summaryrefslogtreecommitdiff
path: root/modules/pam_unix/support.c
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2005-01-05 16:15:26 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2005-01-05 16:15:26 +0000
commit6a117d5418f224a668a0a58d6299c212357a1972 (patch)
tree4e814153e8c52c09ac43ecead94efbbe524fb5ff /modules/pam_unix/support.c
parentc012723f3aaa312500c22a7243db20bc5ebc4b38 (diff)
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/support.c')
-rw-r--r--modules/pam_unix/support.c2
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;
}
}
/*