summaryrefslogtreecommitdiffstats
path: root/bin/ps/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ps/print.c')
-rw-r--r--bin/ps/print.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 1870c53..081c4f5 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -366,6 +366,8 @@ tname(KINFO *k, VARENT *ve)
if (strncmp(ttname, "tty", 3) == 0 ||
strncmp(ttname, "cua", 3) == 0)
ttname += 3;
+ if (strncmp(ttname, "pts/", 4) == 0)
+ ttname += 4;
(void)printf("%*.*s%c", v->width - 1, v->width - 1, ttname,
k->ki_p->ki_kiflag & KI_CTTY ? ' ' : '-');
}
OpenPOWER on IntegriCloud