Source-Changes-HG archive

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

[src/netbsd-3]: src/libexec/getty Pull up revision 1.47 (requested by christo...



details:   https://anonhg.NetBSD.org/src/rev/bdd151744356
branches:  netbsd-3
changeset: 574937:bdd151744356
user:      tron <tron%NetBSD.org@localhost>
date:      Sat Mar 19 18:00:47 2005 +0000

description:
Pull up revision 1.47 (requested by christos in ticket #24):
print ptyfs ptys properly.

diffstat:

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

diffs (28 lines):

diff -r b102e002d707 -r bdd151744356 libexec/getty/main.c
--- a/libexec/getty/main.c      Sat Mar 19 17:56:29 2005 +0000
+++ b/libexec/getty/main.c      Sat Mar 19 18:00:47 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.46 2004/11/05 21:52:07 dsl Exp $    */
+/*     $NetBSD: main.c,v 1.46.2.1 2005/03/19 18:00:47 tron Exp $       */
 
 /*-
  * Copyright (c) 1980, 1993
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "from: @(#)main.c       8.1 (Berkeley) 6/20/93";
 #else
-__RCSID("$NetBSD: main.c,v 1.46 2004/11/05 21:52:07 dsl Exp $");
+__RCSID("$NetBSD: main.c,v 1.46.2.1 2005/03/19 18:00:47 tron Exp $");
 #endif
 #endif /* not lint */
 
@@ -658,7 +658,8 @@
                switch (*++cp) {
 
                case 't':
-                       slash = strrchr(ttyn, '/');
+                       if ((slash = strstr(ttyn, "/pts/")) == NULL)
+                               slash = strrchr(ttyn, '/');
                        if (slash == NULL)
                                xputs(ttyn);
                        else



Home | Main Index | Thread Index | Old Index