[Bug 3210] Confusing errors when pam_acct_mgmt() fails

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Sep 13 16:28:22 AEST 2021


https://bugzilla.mindrot.org/show_bug.cgi?id=3210

--- Comment #3 from Darren Tucker <dtucker at dtucker.net> ---
Comment on attachment 3545
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3545
Alternate proposal to preserve pam_acct_mgmt() return value

I think I prefer this approach, however

>            sshpam_err = do_pam_account();
[...]
>-	return (sshpam_account_status);
>+	return (sshpam_err);

do_pam_account returns u_int but sshpam_err is and pam_account_mgmt
returns int.

(sshpam_account_status is also an int but it's only used if it's set to
0 or 1)

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list