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:
Jonathan Chen 2001-08-05 09:41:20 +00:00
parent 48aa92042e
commit 974a54a2cd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81156

View File

@ -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