From owner-freebsd-bugs@FreeBSD.ORG Sun Feb 13 17:00:43 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 082B416A4CE for ; Sun, 13 Feb 2005 17:00:43 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD8A643D1F for ; Sun, 13 Feb 2005 17:00:42 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j1DH0gcW024879 for ; Sun, 13 Feb 2005 17:00:42 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1DH0gUx024878; Sun, 13 Feb 2005 17:00:42 GMT (envelope-from gnats) Date: Sun, 13 Feb 2005 17:00:42 GMT Message-Id: <200502131700.j1DH0gUx024878@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Sergey Matveychuk Subject: Re: bin/76089: The "-n" option in /usr/bin/w is broken X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sergey Matveychuk List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Feb 2005 17:00:43 -0000 The following reply was made to PR bin/76089; it has been noted by GNATS. From: Sergey Matveychuk To: freebsd-gnats-submit@FreeBSD.org, jesper@hackunite.net, hackers@FreeBSD.org Cc: Subject: Re: bin/76089: The "-n" option in /usr/bin/w is broken Date: Sun, 13 Feb 2005 19:50:44 +0300 w(1) behaviour has changed with brien commit in w.c revision 1.48. Funny, but looks like '-n' options works right after commit, not before. The reason is utmp holds a host name and w(1) with '-n' flag _do_ resolve hostname back in IP address and without '-n' don't resolve it. It's confised. IMHO to be more robust, we should make utmp to hold an IP address instead of a hostname and change all applications that use it. As bonus it will fix a delay on login when resolving does not work. And last(1) will show more useful IP address instead of changable hostname. But I'm not sure about standards. -- Sem.