mirror of
https://github.com/shadow-maint/shadow.git
synced 2024-11-28 12:34:39 +08:00
* src/login.c: Existence of pam_user was already checked. pwd was
already copied to pwent. Remove duplicated code.
This commit is contained in:
parent
f4860274be
commit
9f2ce12b28
@ -1,3 +1,8 @@
|
||||
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/login.c: Existence of pam_user was already checked. pwd was
|
||||
already copied to pwent. Remove duplicated code.
|
||||
|
||||
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/login.c: check_flags() renamed process_flags(). All flag
|
||||
|
13
src/login.c
13
src/login.c
@ -810,19 +810,6 @@ int main (int argc, char **argv)
|
||||
retcode = pam_open_session (pamh, hushed (&pwent) ? PAM_SILENT : 0);
|
||||
PAM_FAIL_CHECK;
|
||||
|
||||
pwd = xgetpwnam (pam_user);
|
||||
if (NULL == pwd) {
|
||||
pwent.pw_name = pam_user;
|
||||
strcpy (temp_pw, "!");
|
||||
pwent.pw_passwd = temp_pw;
|
||||
pwent.pw_shell = temp_shell;
|
||||
|
||||
preauth_flag = false;
|
||||
failed = true;
|
||||
} else {
|
||||
pwent = *pwd;
|
||||
}
|
||||
|
||||
#else /* ! USE_PAM */
|
||||
while (true) { /* repeatedly get login/password pairs */
|
||||
failed = false; /* haven't failed authentication yet */
|
||||
|
Loading…
Reference in New Issue
Block a user