diff options
author | svn2git <svn2git@FreeBSD.org> | 1994-07-01 08:00:00 +0000 |
---|---|---|
committer | svn2git <svn2git@FreeBSD.org> | 1994-07-01 08:00:00 +0000 |
commit | 5e0e9b99dc3fc0ecd49d929db0d57c784b66f481 (patch) | |
tree | e779b5a6edddbb949b7990751b12d6f25304ba86 /usr.bin/w/w.c | |
parent | a16f65c7d117419bd266c28a1901ef129a337569 (diff) |
Diffstat (limited to 'usr.bin/w/w.c')
-rw-r--r-- | usr.bin/w/w.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index c24b88502b05..9fbc2e53f608 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -179,6 +179,11 @@ main(argc, argv) *nextp = ep; nextp = &(ep->next); bcopy(&utmp, &(ep->utmp), sizeof (struct utmp)); + if (!strncmp(ep->utmp.ut_line, "uu", 2)) { + ep->idle = 0; + ep->tdev = -1; + continue; + } stp = ttystat(ep->utmp.ut_line); ep->tdev = stp->st_rdev; #if defined(hp300) || defined(i386) @@ -319,7 +324,8 @@ main(argc, argv) for (ep = ehead; ep != NULL; ep = ep->next) { printf("%-*.*s %-2.2s %-*.*s %s", UT_NAMESIZE, UT_NAMESIZE, ep->utmp.ut_name, - strncmp(ep->utmp.ut_line, "tty", 3) == 0 ? + strncmp(ep->utmp.ut_line, "tty", 3) == 0 || + strncmp(ep->utmp.ut_line, "cua", 3) == 0 ? ep->utmp.ut_line+3 : ep->utmp.ut_line, UT_HOSTSIZE, UT_HOSTSIZE, *ep->utmp.ut_host ? ep->utmp.ut_host : "-", |