mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Fix logic error resulting in incorrect calculation of login time
PR: bin/4204 Submitted by: Anatoly A. Orehovsky <tolik@www.tomsk.su> MFC after: 4 weeks
This commit is contained in:
parent
48aa92042e
commit
974a54a2cd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81156
@ -509,8 +509,8 @@ ac(fp)
|
||||
* a login session if the ut_host field is non-empty
|
||||
*/
|
||||
if (*usr.ut_name) {
|
||||
if (strncmp(usr.ut_line, "tty", 3) != 0 ||
|
||||
strchr("pqrsPQRS", usr.ut_line[3]) == 0 ||
|
||||
if (strncmp(usr.ut_line, "tty", 3) == 0 ||
|
||||
strchr("pqrsPQRS", usr.ut_line[3]) != 0 ||
|
||||
*usr.ut_host != '\0')
|
||||
head = log_in(head, &usr);
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user