Subject: Re: misc/35254: telnet (and others?) provide false/misleading/useless
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: netbsd-bugs
Date: 12/15/2006 16:50:04
The following reply was made to PR misc/35254; it has been noted by GNATS.

From: Matthias Drochner <M.Drochner@fz-juelich.de>
To: gnats-bugs@NetBSD.org
Cc: misc-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
	netbsd-bugs@NetBSD.org
Subject: Re: misc/35254: telnet (and others?) provide false/misleading/useless 
 error message for name resolution failure
Date: Fri, 15 Dec 2006 17:46:54 +0100

 This is a multipart MIME message.
 
 --==_Exmh_13383797826540
 Content-Type: text/plain; charset=us-ascii
 
 
 It is not just telnet, it is probably everything which
 uses the libc internal resolver.
 Try eg "getent hosts www.aka.fi".
 
 I didn't check which characters are allowed at which
 position, so the appended patch is likely nonsense,
 but it shows where the behaviour originates.
 
 best regards
 Matthias
 
 
 
 --==_Exmh_13383797826540
 Content-Type: text/plain ; name="res.txt"; charset=us-ascii
 Content-Description: res.txt
 Content-Disposition: attachment; filename="res.txt"
 
 --- res_comp.c.~1.6.~	Mon May 24 11:38:02 2004
 +++ res_comp.c	Fri Dec 15 17:31:13 2006
 @@ -160,7 +160,7 @@ dn_skipname(const u_char *ptr, const u_c
   * is not careful about this, but for some reason, we're doing it right here.
   */
  #define PERIOD 0x2e
 -#define	hyphenchar(c) ((c) == 0x2d)
 +#define	hyphenchar(c) ((c) == 0x2d || (c) == 0x5f)
  #define bslashchar(c) ((c) == 0x5c)
  #define periodchar(c) ((c) == PERIOD)
  #define asterchar(c) ((c) == 0x2a)
 
 --==_Exmh_13383797826540--