From owner-freebsd-bugs@FreeBSD.ORG Thu Nov 8 14:50:05 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7ABF816A421 for ; Thu, 8 Nov 2007 14:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 624CC13C494 for ; Thu, 8 Nov 2007 14:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id lA8Eo5oj025668 for ; Thu, 8 Nov 2007 14:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id lA8Eo5dj025667; Thu, 8 Nov 2007 14:50:05 GMT (envelope-from gnats) Date: Thu, 8 Nov 2007 14:50:05 GMT Message-Id: <200711081450.lA8Eo5dj025667@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: bob Cc: Subject: Re: bin/117773: 'w -n' still dispalys names for IPv6 connections X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bob List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 14:50:05 -0000 The following reply was made to PR bin/117773; it has been noted by GNATS. From: bob To: bug-followup@FreeBSD.org, petefrench@ticketswitch.com Cc: Subject: Re: bin/117773: 'w -n' still dispalys names for IPv6 connections Date: Thu, 8 Nov 2007 6:34:41 -0800 I tried reproducing this bug hoping to be able to fix it but had a little bit of trouble reproducing it. From what I can see on RELENG_7 and RELENG_6 the -n flag will work the same way for IPv4 and IPv6. In the case that -n is set w(1) just reads from /var/run/utmp and basically dumps the address that's written there. On my machine I'm seeing IPv6 addresses being written into /var/run/utmp and w(1) is working as designed. If I ssh to ::1 or 127.0.0.1 then localhost is written to /var/run/utmp and `w -n` prints localhost even though I said -n. I'm wondering if you can share part of your utmp file to verify that the hostname is being written in to that file rather than the IPv6 address? If there is a bug here I believe that it's in whatever writes to /var/run/utmp, not w(1). -Bob