[PATCH] netdb: increase line size for /etc/services
Natanael Copa
natanael.copa at gmail.com
Thu Aug 19 16:49:28 UTC 2010
On Thu, Aug 19, 2010 at 10:13 AM, Natanael Copa <natanael.copa at gmail.com> wrote:
> On Wed, Aug 18, 2010 at 7:04 PM, Bernhard Reutner-Fischer
> <rep.dot.nop at 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
More information about the uClibc
mailing list