Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Mar 2000 07:20:03 -0800 (PST)
From:      Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: conf/17406: nis in /etc/host.conf breaks network programs
Message-ID:  <200003161520.HAA21638@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/17406; it has been noted by GNATS.

From: Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp>
To: sperber@informatik.uni-tuebingen.de
Cc: freebsd-gnats-submit@FreeBSD.ORG, sheldonh@uunet.co.za
Subject: Re: conf/17406: nis in /etc/host.conf breaks network programs
Date: Fri, 17 Mar 2000 00:12:24 +0900

 > >Description:
 > Putting nis anywhere in /etc/host.conf makes basically every network
 > program (like ftp or telnet) segfault upon startup.
 > >How-To-Repeat:
 > Put nis in /etc/host.conf, do ftp ftp.freebsd.org.
 > >Fix:
 
 I confirmed that the problem also happens in my environment,
 and the attached patch fixed it in my environment.  Could you
 please try this patch, and try ftp or telnet again after
 rebuilded and reinstalled src/lib/libc?
 
 Thanks,
 Yoshinobu Inoue
 
 Index: name6.c
 ===================================================================
 RCS file: /home/ncvs/src/lib/libc/net/name6.c,v
 retrieving revision 1.6
 diff -u -r1.6 name6.c
 --- name6.c	2000/03/09 22:52:30	1.6
 +++ name6.c	2000/03/16 15:08:32
 @@ -840,7 +840,7 @@
  static struct hostent *
  _nis_ghbyname(const char *name, int af, int *errp)
  {
 -	struct hostent *hp;
 +	struct hostent *hp = NULL;
  
 	if (af == AF_INET) {
 		hp = _gethostbynisname(name, af);
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003161520.HAA21638>