Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.bin/w Pull up revision 1.32 (requested by mrg):
details: https://anonhg.NetBSD.org/src/rev/913ef4be0332
branches: netbsd-1-4
changeset: 469579:913ef4be0332
user: he <he%NetBSD.org@localhost>
date: Tue Oct 12 19:58:23 1999 +0000
description:
Pull up revision 1.32 (requested by mrg):
Fix "dty" vs "tty" problems that have existed since "dty"s were
invented sometime before 1.4 was released.
diffstat:
usr.bin/w/w.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 1e90ddc68e4a -r 913ef4be0332 usr.bin/w/w.c
--- a/usr.bin/w/w.c Tue Oct 12 19:57:40 1999 +0000
+++ b/usr.bin/w/w.c Tue Oct 12 19:58:23 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: w.c,v 1.31 1999/01/29 14:17:21 pk Exp $ */
+/* $NetBSD: w.c,v 1.31.2.1 1999/10/12 19:58:23 he Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)w.c 8.6 (Berkeley) 6/30/94";
#else
-__RCSID("$NetBSD: w.c,v 1.31 1999/01/29 14:17:21 pk Exp $");
+__RCSID("$NetBSD: w.c,v 1.31.2.1 1999/10/12 19:58:23 he Exp $");
#endif
#endif /* not lint */
@@ -332,7 +332,8 @@
}
(void)printf("%-*.*s %-2.2s %-*.*s ",
UT_NAMESIZE, UT_NAMESIZE, ep->utmp.ut_name,
- strncmp(ep->utmp.ut_line, "tty", 3) ?
+ (strncmp(ep->utmp.ut_line, "tty", 3) &&
+ strncmp(ep->utmp.ut_line, "dty", 3)) ?
ep->utmp.ut_line : ep->utmp.ut_line + 3,
UT_HOSTSIZE, UT_HOSTSIZE, *p ? p : "-");
pr_attime(&ep->utmp.ut_time, &now);
Home |
Main Index |
Thread Index |
Old Index