From a2fb0dd306db943e4165f530534b01d00298065f Mon Sep 17 00:00:00 2001 From: xujing Date: Tue, 3 Dec 2024 20:11:18 +0800 Subject: pam_unix: fix diagnostic message in debug mode When configured using -Dpam-debug=true, _pam_unix_approve_pass prints a diagnostic message with addresses of password strings. Apparently, since the times predating the git history of the project in this diagnostic message the addresses of the old and new passwords were mixed up. --- modules/pam_unix/pam_unix_passwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c index 4a3784a5..fc19d474 100644 --- a/modules/pam_unix/pam_unix_passwd.c +++ b/modules/pam_unix/pam_unix_passwd.c @@ -545,7 +545,7 @@ static int _pam_unix_approve_pass(pam_handle_t * pamh const char *remark = NULL; int retval = PAM_SUCCESS; - D(("&new=%p, &old=%p", pass_old, pass_new)); + D(("&new=%p, &old=%p", pass_new, pass_old)); D(("new=[%s]", pass_new)); D(("old=[%s]", pass_old)); -- cgit v1.2.3