mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-29 12:44:53 +01:00
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:
parent
4bdc08efa2
commit
3376ef4ddb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user