[PATCH] netdb: increase line size for /etc/services

Natanael Copa natanael.copa at gmail.com
Thu Aug 19 08:13:06 UTC 2010


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;
}





-- 
Natanael Copa


More information about the uClibc mailing list