This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: glibc 2.1 is broken.


> 
> On Fri, 11 Sep 1998 08:45:05 -0700 (PDT), H.J. Lu wrote:
> >Hi,
> >
> >glibc 2.1 is broken. I am trying to find out why.
> 
> um, broken where? or at least what are the symptoms?
> 

gethostbyname () won't work if you only have one DNS server in
/etc/resolv.conf. I haven't tried if it will fix my problem.


-- 
H.J. Lu (hjl@gnu.org)
----
Index: resolv/res_init.c
===================================================================
RCS file: /home/work/cvs/gnu/glibc/resolv/res_init.c,v
retrieving revision 1.1.1.7
diff -u -r1.1.1.7 res_init.c
--- res_init.c	1998/09/11 13:51:34	1.1.1.7
+++ res_init.c	1998/09/11 16:22:57
@@ -380,7 +380,7 @@
 		    continue;
 		}
 	    }
-	    if (nserv > 1)
+	    if (nserv > _res.nscount)
 		_res.nscount = nserv;
 #ifdef RESOLVSORT
 	    _res.nsort = nsort;
@@ -573,7 +573,7 @@
 		    ni_namelist_free(&nl);
 		}
 
-		if (nserv > 1)
+		if (nserv > _res.nscount)
 		    _res.nscount = nserv;
 
 #ifdef RESOLVSORT


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]