From 08485c20e9ad152cb6a605ab6d3a331bfd9a2f86 Mon Sep 17 00:00:00 2001 From: jon Date: Sun, 5 Aug 2001 09:41:20 +0000 Subject: Fix logic error resulting in incorrect calculation of login time PR: bin/4204 Submitted by: Anatoly A. Orehovsky MFC after: 4 weeks --- usr.sbin/ac/ac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ac/ac.c') diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c index 1b3ef8c..b82a7e7 100644 --- a/usr.sbin/ac/ac.c +++ b/usr.sbin/ac/ac.c @@ -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 -- cgit v1.1