svn commit: r202214 - head/contrib/telnet/telnetd
Ed Schouten
ed at FreeBSD.org
Wed Jan 13 18:46:50 UTC 2010
Author: ed
Date: Wed Jan 13 18:46:50 2010
New Revision: 202214
URL: http://svn.freebsd.org/changeset/base/202214
Log:
Forgot a part that was missing in the previous commit.
There is no need to call trimdomain() anymore now that ut_host is big
enough to fit decent hostnames.
Modified:
head/contrib/telnet/telnetd/telnetd.c
Modified: head/contrib/telnet/telnetd/telnetd.c
==============================================================================
--- head/contrib/telnet/telnetd/telnetd.c Wed Jan 13 18:43:32 2010 (r202213)
+++ head/contrib/telnet/telnetd/telnetd.c Wed Jan 13 18:46:50 2010 (r202214)
@@ -692,7 +692,6 @@ doit(struct sockaddr *who)
Please contact your net administrator");
remote_hostname[sizeof(remote_hostname) - 1] = '\0';
- trimdomain(remote_hostname, UT_HOSTSIZE);
if (!isdigit(remote_hostname[0]) && strlen(remote_hostname) > utmp_len)
err_ = getnameinfo(who, who->sa_len, remote_hostname,
sizeof(remote_hostname), NULL, 0,
More information about the svn-src-all
mailing list