Date: Sun, 13 Feb 2005 17:00:42 GMT From: Sergey Matveychuk <sem@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/76089: The "-n" option in /usr/bin/w is broken Message-ID: <200502131700.j1DH0gUx024878@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/76089; it has been noted by GNATS. From: Sergey Matveychuk <sem@FreeBSD.org> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502131700.j1DH0gUx024878>