]> git.ipfire.org Git - thirdparty/shadow.git/commit
* src/login.c: Get rid of pwent. pwd is sufficient as long as it
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 20 Apr 2009 13:29:15 +0000 (13:29 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 20 Apr 2009 13:29:15 +0000 (13:29 +0000)
commit18fdfee27472f718e8cc61560ea40ef88968e19b
tree3ca647d0bd2df2f83512ca10c98841014ada70cd
parenta6ac4dda75340dfd1640a639e38593f46aa870ed
* src/login.c: Get rid of pwent. pwd is sufficient as long as it
is always coming from xgetpwnam. There is no need to copy pwd to
pwent, this was not a good idea anyway as the strings from pwd
were not duplicated.
* src/login.c: Always free the pwd and spwd structure when we
retrieve a new one. This will clear the password of the previous
user from the memory.
* src/login.c: user_passwd is used to keep point to the password
of the user being authenticated.
* src/login.c: (non PAM) Fail if the user's entry cannot be found
after the user updated her password (if expire() requested an
update).
* src/login.c: If the user does not exist on the system, there is
no need to build a pwd structure (with shell).
ChangeLog
src/login.c