Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/w PR/28185: Brian Marcotte: w command broken when us...
details: https://anonhg.NetBSD.org/src/rev/7e0fa183eda4
branches: trunk
changeset: 571094:7e0fa183eda4
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 11 00:09:07 2004 +0000
description:
PR/28185: Brian Marcotte: w command broken when user specified
diffstat:
usr.bin/w/w.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 9d2934628253 -r 7e0fa183eda4 usr.bin/w/w.c
--- a/usr.bin/w/w.c Thu Nov 11 00:03:15 2004 +0000
+++ b/usr.bin/w/w.c Thu Nov 11 00:09:07 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: w.c,v 1.62 2004/11/10 16:58:10 christos Exp $ */
+/* $NetBSD: w.c,v 1.63 2004/11/11 00:09:07 christos Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)w.c 8.6 (Berkeley) 6/30/94";
#else
-__RCSID("$NetBSD: w.c,v 1.62 2004/11/10 16:58:10 christos Exp $");
+__RCSID("$NetBSD: w.c,v 1.63 2004/11/11 00:09:07 christos Exp $");
#endif
#endif /* not lint */
@@ -209,7 +209,7 @@
continue;
++nusers;
if (sel_user &&
- strncmp(utx->ut_name, sel_user, sizeof(utx->ut_name) != 0))
+ strncmp(utx->ut_name, sel_user, sizeof(utx->ut_name)) != 0)
continue;
if ((ep = calloc(1, sizeof(struct entry))) == NULL)
err(1, NULL);
@@ -240,7 +240,7 @@
continue;
if (sel_user &&
- strncmp(ut->ut_name, sel_user, sizeof(ut->ut_name) != 0))
+ strncmp(ut->ut_name, sel_user, sizeof(ut->ut_name)) != 0)
continue;
/* Don't process entries that we have utmpx for */
Home |
Main Index |
Thread Index |
Old Index