From owner-freebsd-bugs@FreeBSD.ORG Sat Jun 11 06:50:30 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org 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 048D616A41C for ; Sat, 11 Jun 2005 06:50:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD89A43D1F for ; Sat, 11 Jun 2005 06:50:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j5B6oTcu026197 for ; Sat, 11 Jun 2005 06:50:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j5B6oTWj026196; Sat, 11 Jun 2005 06:50:29 GMT (envelope-from gnats) Date: Sat, 11 Jun 2005 06:50:29 GMT Message-Id: <200506110650.j5B6oTWj026196@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Matteo Riondato Cc: Subject: Re: bin/76089: The "-n" option in /usr/bin/w is broken X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matteo Riondato List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jun 2005 06:50:30 -0000 The following reply was made to PR bin/76089; it has been noted by GNATS. From: Matteo Riondato To: bug-followup@FreeBSD.org, jesper@hackunite.net Cc: Subject: Re: bin/76089: The "-n" option in /usr/bin/w is broken Date: Sat, 11 Jun 2005 08:46:14 +0200 The recording of the "realhostname" is a feature and not a bug. Both openssh and telnet call realhostname_sa() to convert the IP address of the remote peer to a realhostname. See line 661 of /usr/src/crypto/openssh/loginrec.c and line 688 of /usr/src/contrib/telnet/telnetd/telnetd.c . What should be done then? The "-n" option could be retired since no longer supported or the man page should be changed to reflect the fact that this option is not supported by default (for openssh, one can change /usr/src/crypto/openssh/config.h to have addresses recorded in utmp. See line 180 and below.) IMHO the "-n" option can be retired since having a "realhostname" is probably better in terms of human readability and usefulness. Anyway, UT_HOSTSIZE is surely too small (16 is not enough..64 may be a better value). Best Regards -- Rionda aka Matteo Riondato Disinformato per default G.U.F.I. Staff Member (http://www.gufi.org) FreeSBIE Developer (http://www.freesbie.org)