diff options
| author | christos <christos@NetBSD.org> | 2005-03-17 01:34:41 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2005-03-17 01:34:41 +0000 |
| commit | 6cb3c8e4eb82e8684a1ac3db34761b53516ded82 (patch) | |
| tree | 50c0b719e99f6e38dd980098e6c37620897d14e5 /libexec | |
| parent | 00e4cd7dc03667c850507d9cf0cad235b6955800 (diff) | |
Handle printing ptyfs pty names
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/telnetd/utility.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/telnetd/utility.c b/libexec/telnetd/utility.c index 83752e684e5..dfee98382b7 100644 --- a/libexec/telnetd/utility.c +++ b/libexec/telnetd/utility.c @@ -1,4 +1,4 @@ -/* $NetBSD: utility.c,v 1.27 2005/02/06 17:30:33 agc Exp $ */ +/* $NetBSD: utility.c,v 1.28 2005/03/17 01:34:41 christos Exp $ */ /* * Copyright (c) 1989, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)utility.c 8.4 (Berkeley) 5/30/95"; #else -__RCSID("$NetBSD: utility.c,v 1.27 2005/02/06 17:30:33 agc Exp $"); +__RCSID("$NetBSD: utility.c,v 1.28 2005/03/17 01:34:41 christos Exp $"); #endif #endif /* not lint */ @@ -449,7 +449,8 @@ putf(char *cp, char *where) switch (*++cp) { case 't': - slash = strrchr(line, '/'); + if ((slash = strstr(line, "/pts/")) == NULL) + slash = strrchr(line, '/'); if (slash == (char *) 0) putstr(line); else |
