[5624] in Athena Bugs

home help back first fref pref prev next nref lref last post

telnet exits when it shouldn't

daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Sun Jul 29 15:56:22 1990

Date: Sun, 29 Jul 90 15:56:10 -0400
From: Jonathan I. Kamens <jik@PIT-MANAGER.MIT.EDU>
To: bugs@ATHENA.MIT.EDU

I agree that the current behavior is incorrect; we should look into
whether or not this patch correctly fixes the problem.

In article <56353@wlbr.IMSD.CONTEL.COM>, sms@wlv.imsd.contel.com (Steven
M. Schultz) writes:
|> Subject: telnet close command causes premature exit (+FIX)
|> Index:	ucb/telnet.c 4.3BSD
|> 
|> Description:
|> 	The "close" command causes telnet to exit rather than closing
|> 	the connection and returning to the command loop.
|> 
|> Repeat-By:
|> 	Establish a telnet connection, escape (^]) back to the
|> 	telnet command prompt and type "close".  Note that telnet
|> 	exits rather than permitting another connection to be opened.
|> 
|> Fix:
|> 
|> 	Change the return value of bye() to 0 rather than 1.
|> 
|> *** telnet.c.old	Tue May 27 12:47:07 1986
|> --- telnet.c	Fri Jul 27 08:10:57 1990
|> ***************
|> *** 1973,1979 ****
|>   		for (op = hisopts; op < &hisopts[256]; op++)
|>   			*op = 0;
|>   	}
|> ! 	return 1;
|>   }
|>   
|>   /*VARARGS*/
|> --- 1973,1979 ----
|>   		for (op = hisopts; op < &hisopts[256]; op++)
|>   			*op = 0;
|>   	}
|> ! 	return 0;
|>   }
|>   
|>   /*VARARGS*/

Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik@Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8495			      Home: 617-782-0710

home help back first fref pref prev next nref lref last post