summaryrefslogtreecommitdiff
path: root/modules/pam_unix/pam_unix_passwd.c
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2002-07-09 04:44:18 +0000
committerAndrew G. Morgan <morgan@kernel.org>2002-07-09 04:44:18 +0000
commit067affee9267fa0d1c21835182ba639ba33e820f (patch)
tree71f8a6dc2703f7d650d0e2880ec931e86f1b7ca3 /modules/pam_unix/pam_unix_passwd.c
parentcda1a99dcb3ef18f21bc5cb2b3994e160ec51118 (diff)
Relevant BUGIDs: 521314
Purpose of commit: bugfix Commit summary: --------------- bigcrypt does not match crypt when password length is too long. This led to a pam_unix problem when the module had not set the password in bigcrypt mode, but was trying to compare with bigcrypt output. The fix is to use the stored password as a guide to how much of the encrypted password to compare against.
Diffstat (limited to 'modules/pam_unix/pam_unix_passwd.c')
-rw-r--r--modules/pam_unix/pam_unix_passwd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c
index fcfe187e..6b51a6b2 100644
--- a/modules/pam_unix/pam_unix_passwd.c
+++ b/modules/pam_unix/pam_unix_passwd.c
@@ -965,6 +965,8 @@ PAM_EXTERN int pam_sm_chauthtok(pam_handle_t * pamh, int flags,
/*
* to avoid using the _extensions_ of the bigcrypt()
* function we truncate the newly entered password
+ * [Problems that followed from this are fixed as per
+ * Bug 521314.]
*/
char *temp = malloc(9);