Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/rwho Use full hostnames when sorting rwho database e...
details: https://anonhg.NetBSD.org/src/rev/a2f200258845
branches: trunk
changeset: 476580:a2f200258845
user: tron <tron%NetBSD.org@localhost>
date: Mon Sep 20 20:35:43 1999 +0000
description:
Use full hostnames when sorting rwho database entries. Fixes PR bin/8401
by John Darrow.
diffstat:
usr.bin/rwho/rwho.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r f5a25c736ece -r a2f200258845 usr.bin/rwho/rwho.c
--- a/usr.bin/rwho/rwho.c Mon Sep 20 19:52:31 1999 +0000
+++ b/usr.bin/rwho/rwho.c Mon Sep 20 20:35:43 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rwho.c,v 1.11 1998/12/19 21:52:00 christos Exp $ */
+/* $NetBSD: rwho.c,v 1.12 1999/09/20 20:35:43 tron Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -41,7 +41,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)rwho.c 8.1 (Berkeley) 6/6/93";*/
-__RCSID("$NetBSD: rwho.c,v 1.11 1998/12/19 21:52:00 christos Exp $");
+__RCSID("$NetBSD: rwho.c,v 1.12 1999/09/20 20:35:43 tron Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -196,8 +196,9 @@
rc = strncmp(u1->myutmp.out_name, u2->myutmp.out_name, 8);
if (rc)
return (rc);
- rc = strncmp(u1->myhost, u2->myhost, 8);
+ rc = strcmp(u1->myhost, u2->myhost);
if (rc)
return (rc);
return (strncmp(u1->myutmp.out_line, u2->myutmp.out_line, 8));
}
+
Home |
Main Index |
Thread Index |
Old Index