[.....] > I got sick of seing "invalid hostname" in my wtmps a while ago on my 2.x > machines. That is an exceptionally useless piece of behavior, if you ask > me. Sshd writes out IPs and I find that to be much more consistent (and > useful).
Sshd gets it wrong though. It gets the full hostname and then a freebsd patch changes that to an IP if the name is >UT_HOSTSIZE. In -current, this behaviour has been changed to call trimdomain() (trimdomain() has just been documented too), and if the result still doesn't fit in UT_HOSTSIZE it reverts to an IP number. This should be pretty consistent for all the stuff in libexec now too. > Robert N Watson > > rob...@fledge.watson.org http://www.watson.org/~robert/ > PGP key fingerprint: 03 01 DD 8E 15 67 48 73 25 6D 10 FC EC 68 C1 1C > > Carnegie Mellon University http://www.cmu.edu/ > TIS Labs at Network Associates, Inc. http://www.tis.com/ > Safeport Network Services http://www.safeport.com/ -- Brian <br...@awfulhak.org> <br...@freebsd.org> <http://www.Awfulhak.org> <br...@openbsd.org> Don't _EVER_ lose your sense of humour ! <br...@uk.freebsd.org> To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message