Date: Thu, 8 Nov 2007 14:50:05 GMT From: bob <bob@norcalttora.com> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/117773: 'w -n' still dispalys names for IPv6 connections Message-ID: <200711081450.lA8Eo5dj025667@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/117773; it has been noted by GNATS. From: bob <bob@norcalttora.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711081450.lA8Eo5dj025667>