summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-08-01 07:33:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-08-01 07:33:58 +0000
commit61e41f31ae96f1b793b814839c27c5334b313c30 (patch)
treee91527f628f1918265e32c19f3a4bc7b58a5a44a /usr.sbin
parentbe6db7a84dcc65c9859cfd2a5ddfa5d902ee05cd (diff)
catch ptys correctly; tolik@www.tomsk.su
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ac/ac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c
index 5d3bd0db314..03ccd8100d6 100644
--- a/usr.sbin/ac/ac.c
+++ b/usr.sbin/ac/ac.c
@@ -14,7 +14,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: ac.c,v 1.4 1997/06/02 09:44:51 deraadt Exp $";
+static char rcsid[] = "$Id: ac.c,v 1.5 1997/08/01 07:33:57 deraadt Exp $";
#endif
#include <sys/types.h>
@@ -504,7 +504,7 @@ ac(fp)
*/
if (*usr.ut_name) {
if (strncmp(usr.ut_line, "tty", 3) != 0 ||
- strchr("pqrstuvwxyzPQRST", usr.ut_line[3]) == 0 ||
+ strchr("pqrstuvwxyzPQRST", usr.ut_line[3]) != 0 ||
*usr.ut_host != '\0')
head = log_in(head, &usr);
} else