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

看板FB_current作者時間14年前 (2012/01/10 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/11 (看更多)
On 9 Jan, Dag-Erling Sm鷨grav wrote: > Don Lewis <truckman@FreeBSD.org> writes: >> The documentation says that /etc/pam.conf is only used if >> /etc/pam.d/service-name isn't found, and the code appears to agree >> with that, however this doesn't seem to be working as expected after >> the latest import of PAM. > > The culprit was this commit: > > http://trac.des.no/openpam/changeset/487/trunk/lib/openpam_configure.c > > However, I'm not confident that simply reverting this commit is the > right way to go. Thanks for the detective work. It looks to me like the bug is caused by the change in the openpam_parse_chain() return value. In the previous code it returned the value of count, which I would guess was greater than zero if it found something. In that case, the for loop in openpam_load_chain() would be terminated because r != 0. In the new code, openpam_parse_chain() will return PAM_SUCCESS if it found something, and the loop in openpam_load_chain() will go through another iteration because ret == PAM_SUCCESS. I think the code around the end of the loop should look more like: if (ret == PAM_SUCCESS) break; } return (ret); } _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1F2ojWet (FB_current)
討論串 (同標題文章)
完整討論串 (本文為第 3 之 11 篇):
文章代碼(AID): #1F2ojWet (FB_current)