bin/76089: The "-n" option in /usr/bin/w is broken

Matteo Riondato rionda at gufi.org
Sat Jun 11 06:50:30 GMT 2005


The following reply was made to PR bin/76089; it has been noted by GNATS.

From: Matteo Riondato <rionda at gufi.org>
To: bug-followup at FreeBSD.org, jesper at 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)


More information about the freebsd-bugs mailing list