mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue