Re: couldn't log on to my -CURRENT machine after upgrade to latest PAM

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Mon, 09 Jan 2012 21:25:11 +0100
Don Lewis <truckman_at_FreeBSD.org> writes:
> After staring at the code a lot more, I see your point about the loss of
> information.  The problem is that openpam_parse_chain() returns
> PAM_SUCCESS whether or not if found anything, but we want the loop to
> terminate when either an error is detected or if openpam_parse_chain()
> actually found something.  Maybe changing the loop exit to something
> like this would work:
>
> 		if (ret != PAM_SUCCESS || pamh->chains[facility] != NULL)
>                 	return (ret);

The simplest fix for now is probably to revert r487; it applies cleanly
except for the first hunk, which is easy to apply manually.

DES
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Mon Jan 09 2012 - 19:25:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:23 UTC