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 1995-03-25 18:15:40 +00:00
parent 4bdc08efa2
commit 3376ef4ddb

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