From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 13 16:50:49 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C761E16A4CE; Sun, 13 Feb 2005 16:50:49 +0000 (GMT) Received: from mail.ciam.ru (mail.ciam.ru [213.147.57.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AACB43D31; Sun, 13 Feb 2005 16:50:49 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from ppp83-237-103-192.pppoe.mtu-net.ru ([83.237.103.192] helo=[192.168.0.2]) by mail.ciam.ru with esmtpa (Exim 4.x) id 1D0MxJ-00094N-BU; Sun, 13 Feb 2005 19:50:45 +0300 Message-ID: <420F8564.5060200@FreeBSD.org> Date: Sun, 13 Feb 2005 19:50:44 +0300 From: Sergey Matveychuk User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: freebsd-gnats-submit@FreeBSD.org, jesper@hackunite.net, hackers@FreeBSD.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: bin/76089: The "-n" option in /usr/bin/w is broken X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Feb 2005 16:50:49 -0000 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.