get_last_login_time() called twice.
This commit is contained in:
parent
6beac8c5a0
commit
8d3ebb418a
|
@ -707,10 +707,6 @@ do_login(Session *s)
|
|||
}
|
||||
}
|
||||
|
||||
/* Get the time and hostname when the user last logged in. */
|
||||
last_login_time = get_last_login_time(pw->pw_uid, pw->pw_name,
|
||||
hostname, sizeof(hostname));
|
||||
|
||||
/* Get the time and hostname when the user last logged in. */
|
||||
hostname[0] = '\0';
|
||||
last_login_time = get_last_login_time(pw->pw_uid, pw->pw_name,
|
||||
|
|
Loading…
Reference in New Issue