[uClibc]gethostbyname_r fails when there's no /etc/hosts

Erik Andersen andersen at codepoet.org
Wed Apr 17 12:34:52 UTC 2002


On Fri Apr 12, 2002 at 02:22:48PM -0700, Mike McDonald wrote:
> 
>   If both the /etc/hosts and /etc/config/hosts files do not exist,
> get_hosts_byname_r() will set errno to ENOENT and return -1.
> gethostbyname_r() then completely punts and returns -1. This even
> happens if the call was gethostbyname("192.168.0.1") which it should
> handle. The point of the error is line 1581 in libc/inet/resolv.c:

Thanks, applied,

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list