any more changes/problems?

Andreas Jaeger aj@suse.de
Sat Jan 13 03:47:00 GMT 2001


>>>>> Jakub Jelinek writes:

 > On Fri, Jan 12, 2001 at 04:11:47PM -0800, Ulrich Drepper wrote:
>> If you have anything left tell me now.  Otherwise 2.2.1 will go out
>> soon (maybe over the weekend).

 > I have this one, plus I'm now hacking on getent additions
 > (which can wait after 2.2.1 though).

If your patch is correct, then the lookup_function is wrong, isn't it?

/* Type of the lookup function we need here.  */
typedef int (*lookup_function) (const struct ether_addr *, struct etherent *,
				char *, int);

Andreas

 > 2001-01-13  Jakub Jelinek  <jakub@redhat.com>

 > 	* inet/ether_ntoh.c (ether_ntohost): Pass errno pointer to NSS
 > 	function.

 > --- libc/inet/ether_ntoh.c.jj	Tue Jan  2 14:17:33 2001
 > +++ libc/inet/ether_ntoh.c	Sat Jan 13 01:16:01 2001
 > @@ -65,7 +65,7 @@ ether_ntohost (char *hostname, const str
 >      {
 >        char buffer[1024];
 
 > -      status = (*fct) (addr, &etherent, buffer, sizeof buffer);
 > +      status = (*fct) (addr, &etherent, buffer, sizeof buffer, &errno);
 
 >        no_more = __nss_next (&nip, "getntohost_r", (void **) &fct, status, 0);
 >      }


 > 	Jakub


-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


More information about the Libc-hacker mailing list