From owner-freebsd-bugs@FreeBSD.ORG Sun Dec 7 16:40:02 2008 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 2115D106567C for ; Sun, 7 Dec 2008 16:40:02 +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 B3EE08FC1D for ; Sun, 7 Dec 2008 16:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mB7Ge1T3027299 for ; Sun, 7 Dec 2008 16:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mB7Ge106027298; Sun, 7 Dec 2008 16:40:01 GMT (envelope-from gnats) Resent-Date: Sun, 7 Dec 2008 16:40:01 GMT Resent-Message-Id: <200812071640.mB7Ge106027298@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, James Smallacombe Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BF8B1065673 for ; Sun, 7 Dec 2008 16:34:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 7B0C18FC08 for ; Sun, 7 Dec 2008 16:34:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id mB7GYQUJ016160 for ; Sun, 7 Dec 2008 16:34:26 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id mB7GYQtp016159; Sun, 7 Dec 2008 16:34:26 GMT (envelope-from nobody) Message-Id: <200812071634.mB7GYQtp016159@www.freebsd.org> Date: Sun, 7 Dec 2008 16:34:26 GMT From: James Smallacombe To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/129483: the "w" has a "-n" switch that does not work. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Dec 2008 16:40:02 -0000 >Number: 129483 >Category: misc >Synopsis: the "w" has a "-n" switch that does not work. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 07 16:40:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: James Smallacombe >Release: 6.3-STABLE >Organization: PlantageNet Internet, Ltd. >Environment: FreeBSD mx1.pil.net 6.3-STABLE FreeBSD 6.3-STABLE #0: Thu Apr 17 09:39:00 EDT 2008 root@mx1.pil.net:/usr/src/sys/i386/compile/MX1.SMP i386 >Description: 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. >How-To-Repeat: Type: "w -n" >Fix: 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. >Release-Note: >Audit-Trail: >Unformatted: