diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 1995-03-25 18:15:40 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 1995-03-25 18:15:40 +0000 |
commit | b2b31a1c92b7405beffc22223d6a13dfdddc657a (patch) | |
tree | b67ee678e3328a423017a3a8edf9880a8ff75e40 /usr.bin/finger/sprint.c | |
parent | 3268de551faaf9676174142218a6d9ead8e48a40 (diff) |
Make finger(1) accept "cua" to be also a tty, and use the suffix instead
of the very meaningful string "cu" to describe the tty.
Notes
Notes:
svn path=/head/; revision=7371
Diffstat (limited to 'usr.bin/finger/sprint.c')
-rw-r--r-- | usr.bin/finger/sprint.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/finger/sprint.c b/usr.bin/finger/sprint.c index a59fdd013950..a6481cd73346 100644 --- a/usr.bin/finger/sprint.c +++ b/usr.bin/finger/sprint.c @@ -106,8 +106,9 @@ sflag_print() '*' : ' '); if (*w->tty) (void)printf("%-2.2s ", - w->tty[0] != 't' || w->tty[1] != 't' || - w->tty[2] != 'y' ? w->tty : w->tty + 3); + (strncmp(w->tty, "tty", 3) + && strncmp(w->tty, "cua", 3)) + ? w->tty : w->tty + 3); else (void)printf(" "); if (w->info == LOGGEDIN) { |