Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jun 2005 06:50:29 GMT
From:      Matteo Riondato <rionda@gufi.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/76089: The "-n" option in /usr/bin/w is broken
Message-ID:  <200506110650.j5B6oTWj026196@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: Matteo Riondato <rionda@gufi.org>
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506110650.j5B6oTWj026196>