misc/129483: the "w" has a "-n" switch that does not work.
up at 3.am
Sun Dec 7 08:40:02 PST 2008
>Synopsis: the "w" has a "-n" switch that does not work.
>Arrival-Date: Sun Dec 07 16:40:01 UTC 2008
>Originator: James Smallacombe
PlantageNet Internet, Ltd.
FreeBSD mx1.pil.net 6.3-STABLE FreeBSD 6.3-STABLE #0: Thu Apr 17 09:39:00 EDT 2008 root at mx1.pil.net:/usr/src/sys/i386/compile/MX1.SMP i386
the "w" utility does:
w -- display who is logged in and what they are doing
Unfortunately, the utility always resolves the logged in IP, which then gets truncated by the 16 character limit thusly:
USER TTY FROM LOGIN@ IDLE WHAT
up p0 pool-173-49-94-1 10:55AM - w
This makes it impossible to distinguish the real IP the person is coming from, not to mention that it can easily be faked or useless info. The man page for the utility shows this option:
-n Do not attempt to resolve network addresses (normally w inter-
prets addresses and attempts to display them as names).
However, the output does not change at all. I would think that this would be an easy fix and an important one, too.
I am not a programmer, but simply stopping the utility from doing reverse lookups, at least when the "-n" switch is present should be pretty easy, I'd think.
More information about the freebsd-bugs