diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1998-07-02 05:34:08 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1998-07-02 05:34:08 +0000 |
commit | 1ce46cef12b0c69816a7a0d4d597d6524853789a (patch) | |
tree | 66b5bfcb28d7821c73e47c2075ed6b6894221ceb /usr.sbin/ac/ac.c | |
parent | 50e040d4806acd3ba6061466d2daeb90e393be40 (diff) | |
download | src-1ce46cef12b0c69816a7a0d4d597d6524853789a.tar.gz src-1ce46cef12b0c69816a7a0d4d597d6524853789a.zip |
/var/log/wtmp entries for ptys are treated differently in ac, since
they may not be logins. The code for determining whether it is a pty
entry is broken.
PR: 7137
Reviewed by: phk
Submitted by: Tom Rush <tarush@mindspring.com>
Notes
Notes:
svn path=/head/; revision=37330
Diffstat (limited to 'usr.sbin/ac/ac.c')
-rw-r--r-- | usr.sbin/ac/ac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c index 2e8d0e8dc6e7..0916d3cfa653 100644 --- a/usr.sbin/ac/ac.c +++ b/usr.sbin/ac/ac.c @@ -15,7 +15,7 @@ #ifndef lint static const char rcsid[] = - "$Id: ac.c,v 1.8 1997/09/01 06:11:40 charnier Exp $"; + "$Id: ac.c,v 1.9 1998/05/25 05:21:29 steve Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -503,12 +503,12 @@ ac(fp) break; default: /* - * if they came in on tty[p-y]*, then it is only + * if they came in on tty[p-sP-S]*, then it is only * a login session if the ut_host field is non-empty */ if (*usr.ut_name) { if (strncmp(usr.ut_line, "tty", 3) != 0 || - strchr("pqrstuvwxy", usr.ut_line[3]) == 0 || + strchr("pqrsPQRS", usr.ut_line[3]) == 0 || *usr.ut_host != '\0') head = log_in(head, &usr); } else |