[13770] in Athena Bugs

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

Re: decmips 7.7N: telnet

daemon@ATHENA.MIT.EDU (brlewis@MIT.EDU)
Thu Aug 24 17:43:19 1995

From: brlewis@MIT.EDU
Date: Thu, 24 Aug 95 17:43:16 -0400
To: Matt Braun <mhbraun@MIT.EDU>
Cc: bugs@MIT.EDU
In-Reply-To: "[13769] in Athena Bugs"

Hi Matt.  You and Jonathon promised me two bug reports for each telnet
bug fix I supply.  Jonathon's didn't count, because it wasn't a bug.
You still owe me one.  Yours does count, even though it's really an
Ultrix gethostbyname() bug.  Here's the patch - that's two more you owe
me.

You owe me three new telnet bug reports.

*** 1.5	1995/02/02 16:08:39
--- telnet/commands.c	1995/08/24 21:34:58
***************
*** 2308,2313 ****
--- 2308,2318 ----
  	srp = 0;
  	temp = sourceroute(hostp, &srp, &srlen);
  	if (temp == 0) {
+ #ifdef ultrix
+ 	    extern int h_errno;
+ 
+ 	    if (!h_errno) h_errno = HOST_NOT_FOUND;
+ #endif /* ultrix */
  	    herror(srp);
  	    setuid(getuid());
  	    return 0;
***************
*** 2341,2346 ****
--- 2346,2356 ----
  		_hostname[sizeof(_hostname)-1] = '\0';
  		hostname = _hostname;
  	    } else {
+ #ifdef ultrix
+ 		extern int h_errno;
+ 
+ 		if (!h_errno) h_errno = HOST_NOT_FOUND;
+ #endif /* ultrix */
  		herror(hostp);
  	        setuid(getuid());
  		return 0;

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