Subject: Re: telnet with no greetings
To: Jun-ichiro itojun Hagino <itojun@iijlab.net>
From: Assar Westerlund <assar@netbsd.org>
List: tech-net
Date: 03/26/2001 09:25:16
Jun-ichiro itojun Hagino <itojun@iijlab.net> writes:
> >	i noticed that telnetd(8) does not greet users with hostnames
> >	before login: prompt.  i'm not objecting the change, but i would like
> >	to know if it is intentional, and if so, when was the change made.
> 
> 	I guess it has something to do with the following change.
> 
> itojun
> 
> usr.bin/telnet/main.c
> 
> revision 1.15
> date: 2001/03/04 01:51:05;  author: assar;  state: Exp;  lines: +16 -3
> fix spelling of cpp symbol (ENCRYPT vs ENCRYPTION).
> enable encryption with autologin.
> fixes PR 12226

Yes, and I'm not sure about the reasoning about this in telnetd.
Perhaps we should just apply the following patch?

/assar

Index: telnetd.c
===================================================================
RCS file: /cvsroot/basesrc/libexec/telnetd/telnetd.c,v
retrieving revision 1.25
diff -u -w -u -w -r1.25 telnetd.c
--- telnetd.c	2001/02/04 22:32:17	1.25
+++ telnetd.c	2001/03/26 07:24:48
@@ -1219,11 +1219,6 @@
 	 * other pty --> client data.
 	 */
 
-#if	!defined(CRAY) || !defined(NEWINIT)
-	if (getenv("USER"))
-		hostinfo = 0;
-#endif
-
 	if (getent(defent, gettyname) == 1) {
 		char *cp=defstrs;