On Thu, Aug 19, 2010 at 10:13 AM, Natanael Copa <natanael.c...@gmail.com> wrote:
> On Wed, Aug 18, 2010 at 7:04 PM, Bernhard Reutner-Fischer
> <rep.dot....@gmail.com> wrote:
>> On Wed, Aug 11, 2010 at 12:06:22PM +0000, Natanael Copa wrote:
>>>If /etc/services has lines longer than 80 will getservbyname() fail
>>>so we set it up to 160.
>>
>> I'd prefer something like the attached, does that fix your issue?
>> thanks,
>
> Yes, my testcase no longer exit with error.
>
> #include <netdb.h>
> #include <stdio.h>
>
> int main(void)
> {
>        if (getservbyname("ntp", "udp") == NULL)
>                err(1, "getservbyname");
>        return 0;
> }


but it does not seem to solve same issue with getprotobyame("gre") if
there are any comment longer than 80 chars in /etc/protocols.


-- 
Natanael Copa
_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to