Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/libexec/telnetd Pull up revision 1.28 (requested by chris...



details:   https://anonhg.NetBSD.org/src/rev/f719de48a71c
branches:  netbsd-3
changeset: 574938:f719de48a71c
user:      tron <tron%NetBSD.org@localhost>
date:      Sat Mar 19 18:01:55 2005 +0000

description:
Pull up revision 1.28 (requested by christos in ticket #25):
Handle printing ptyfs pty names

diffstat:

 libexec/telnetd/utility.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r bdd151744356 -r f719de48a71c libexec/telnetd/utility.c
--- a/libexec/telnetd/utility.c Sat Mar 19 18:00:47 2005 +0000
+++ b/libexec/telnetd/utility.c Sat Mar 19 18:01:55 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: utility.c,v 1.27 2005/02/06 17:30:33 agc Exp $ */
+/*     $NetBSD: utility.c,v 1.27.2.1 2005/03/19 18:01:55 tron 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.27.2.1 2005/03/19 18:01:55 tron Exp $");
 #endif
 #endif /* not lint */
 
@@ -449,7 +449,8 @@
                switch (*++cp) {
 
                case 't':
-                       slash = strrchr(line, '/');
+                       if ((slash = strstr(line, "/pts/")) == NULL)
+                               slash = strrchr(line, '/');
                        if (slash == (char *) 0)
                                putstr(line);
                        else



Home | Main Index | Thread Index | Old Index