Re: svn commit: r299926 - head/lib/libpam/modules/pam_unix

2016-05-16 Thread Don Lewis
On 16 May, Ed Maste wrote: > On 16 May 2016 at 04:34, Don Lewis wrote: >> Author: truckman >> Date: Mon May 16 08:34:17 2016 >> New Revision: 299926 >> URL: https://svnweb.freebsd.org/changeset/base/299926 >> >> Log: >> Hoist the getpwnam() call outside the first if/else block in >> pam_sm_cha

Re: svn commit: r299926 - head/lib/libpam/modules/pam_unix

2016-05-16 Thread Ed Maste
On 16 May 2016 at 04:34, Don Lewis wrote: > Author: truckman > Date: Mon May 16 08:34:17 2016 > New Revision: 299926 > URL: https://svnweb.freebsd.org/changeset/base/299926 > > Log: > Hoist the getpwnam() call outside the first if/else block in > pam_sm_chauthtok(). Set user = getlogin() insi

svn commit: r299926 - head/lib/libpam/modules/pam_unix

2016-05-16 Thread Don Lewis
Author: truckman Date: Mon May 16 08:34:17 2016 New Revision: 299926 URL: https://svnweb.freebsd.org/changeset/base/299926 Log: Hoist the getpwnam() call outside the first if/else block in pam_sm_chauthtok(). Set user = getlogin() inside the true branch so that it is initialized for the fol