This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: glibc 2.1 is broken.
- To: zack@rabi.columbia.edu (Zack Weinberg)
- Subject: Re: glibc 2.1 is broken.
- From: hjl@lucon.org (H.J. Lu)
- Date: Fri, 11 Sep 1998 09:26:28 -0700 (PDT)
- Cc: gafton@redhat.com, drepper@cygnus.com (Ulrich Drepper), libc-hacker@cygnus.com (GNU C Library)
>
> 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