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

2010-08-11 Thread Natanael Copa
If /etc/services has lines longer than 80 will getservbyname() fail so we set it up to 160. Signed-off-by: Natanael Copa --- libc/inet/getservice.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libc/inet/getservice.c b/libc/inet/getservice.c index 03f5c29..8248f7a 100

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

2010-08-18 Thread Bernhard Reutner-Fischer
On Wed, Aug 11, 2010 at 12:06:22PM +, 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, diff --git a/libc/inet/getservice.c b/libc/inet/getservice.c index

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

2010-08-19 Thread Natanael Copa
On Wed, Aug 18, 2010 at 7:04 PM, Bernhard Reutner-Fischer wrote: > On Wed, Aug 11, 2010 at 12:06:22PM +, 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? >

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

2010-08-19 Thread Natanael Copa
On Thu, Aug 19, 2010 at 10:13 AM, Natanael Copa wrote: > On Wed, Aug 18, 2010 at 7:04 PM, Bernhard Reutner-Fischer > wrote: >> On Wed, Aug 11, 2010 at 12:06:22PM +, Natanael Copa wrote: >>>If /etc/services has lines longer than 80 will getservbyname() fail >>>so we set it up to 160. >> >> I'd

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

2010-08-22 Thread Mike Frysinger
On Thursday, August 19, 2010 12:49:28 Natanael Copa wrote: > but it does not seem to solve same issue with getprotobyame("gre") if > there are any comment longer than 80 chars in /etc/protocols. i imagine that comments should be skipped rather than needed to be read into memory and then thrown aw