🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #181

telnet close command causes premature exit (+FIX)

#181
From: Steven M. Schultz
Date: Sat, 28 Jul 1990 02:22
35 lines
1328 bytes
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*/
Technical Details
Message-ID: <56353@wlbr.IMSD.CONTEL.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!mahendo!wlbr!wlv.imsd.contel.com!sms

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!mahendo!wlbr!wlv.imsd.contel.com!sms
From: sms@wlv.imsd.contel.com (Steven M. Schultz)
Newsgroups: comp.bugs.4bsd
Subject: telnet close command causes premature exit (+FIX)
Message-ID: <56353@wlbr.IMSD.CONTEL.COM>
Date: 28 Jul 90 02:22:53 GMT
Sender: news@wlbr.IMSD.CONTEL.COM
Reply-To: sms@wlv.imsd.contel.com (Steven M. Schultz)
Organization: Contel Federal Systems
Lines: 35