bin/117773: 'w -n' still dispalys names for IPv6 connections

bob bob at norcalttora.com
Thu Nov 8 06:50:05 PST 2007


The following reply was made to PR bin/117773; it has been noted by GNATS.

From: bob <bob at norcalttora.com>
To: bug-followup at FreeBSD.org, petefrench at 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
 
 
 
 
 


More information about the freebsd-bugs mailing list