From: Simon Schubert Date: Fri, 23 Oct 2009 20:47:31 +0000 (+0200) Subject: ps: print /dev/pts/* as numbers, not as "pts" X-Git-Tag: v2.7.1~446 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/371de718db863c98c3cd3a0741e1b75502890da8 ps: print /dev/pts/* as numbers, not as "pts" --- diff --git a/bin/ps/print.c b/bin/ps/print.c index d5e582c404..078aa19794 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -326,6 +326,8 @@ tname(const KINFO *k, const struct varent *vent) if (strncmp(ttname, "tty", 3) == 0 || strncmp(ttname, "cua", 3) == 0) ttname += 3; + if (strncmp(ttname, "pts/", 4) == 0) + ttname += 4; printf("%*.*s%c", vent->width-1, vent->width-1, ttname, KI_PROC(k, auxflags) & KI_CTTY ? ' ' : '-'); }