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.
This commit is contained in:
Joerg Wunsch 1995-03-25 18:15:40 +00:00
parent 3268de551f
commit b2b31a1c92
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7371

View file

@ -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) {