From walter@giga.nl  Thu Oct 27 11:37:53 2005
Return-Path: <walter@giga.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 592B416A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Oct 2005 11:37:53 +0000 (GMT)
	(envelope-from walter@giga.nl)
Received: from giga.nl (84-107-155-163.dsl.quicknet.nl [84.107.155.163])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 059D743D4C
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Oct 2005 11:37:52 +0000 (GMT)
	(envelope-from walter@giga.nl)
Received: by giga.nl (Postfix, from userid 100)
	id 71BE45C23; Thu, 27 Oct 2005 13:37:51 +0200 (CEST)
Message-Id: <20051027113751.71BE45C23@giga.nl>
Date: Thu, 27 Oct 2005 13:37:51 +0200 (CEST)
From: Walter Belgers <walter@giga.nl>
Reply-To: Walter Belgers <walter@giga.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: w -n problems with IPv6 addresses and localhost
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         88077
>Category:       bin
>Synopsis:       w(1): w -n problems with IPv6 addresses and localhost
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 27 11:40:14 GMT 2005
>Closed-Date:    Fri Nov 21 04:13:40 UTC 2008
>Last-Modified:  Fri Nov 21 04:13:40 UTC 2008
>Originator:     Walter Belgers
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD giga.nl 5.4-STABLE FreeBSD 5.4-STABLE #5: Wed Oct 19 15:31:09 CEST 2005 walter@giga.nl:/usr/obj/usr/src/sys/GIGA i386
>Description:
The command 'w -n' (show current users and do not translate IP numers
into hostnames) does not show IPv6 IP addresses. For localhost,
additional weirdness is involved. This goes for 5.4 but also 4.11 (in a
different way).

FreeBSD 4.11-STABLE

Login from	w shows		w -n shows	which is 
---------------+---------------+---------------+---------
IPv4 address	IPv4 hostname	IPv4 address	correct
IPv6 address	IPv6 hostname	IPv6 hostname	incorrect
127.0.0.1	localhost	127.0.0.1	correct
::1		localhost	127.0.0.1	incorrect

FreeBSD 5.4-STABLE

Login from	w shows		w -n shows	which is 
---------------+---------------+---------------+---------
IPv4 address	IPv4 hostname	IPv4 address	correct
IPv6 address	IPv6 hostname	IPv6 hostname	incorrect
127.0.0.1	localhost	localhost	incorrect
::1		localhost	localhost	incorrect

>How-To-Repeat:
w -n
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: matteo 
State-Changed-When: Ven 21 Nov 2008 04:12:49 UTC 
State-Changed-Why:  
w(1)'s behaviour is correct. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88077 
>Unformatted:
