Re: [Bug-tar] getline() differences FreeBSD / GNU libc

2010-01-31 Thread Bruno Haible
Eric Blake wrote: FreeBSD is buggy. Rewording the POSIX requirement slightly: if lineptr is NULL, then it is irrelevant that linecapp is non-zero. I agree. Gnulib needs to work around this portability flaw, and guarantee a working getline implementation even on fBSD, at which point, your

Re: [Bug-tar] getline() differences FreeBSD / GNU libc

2010-01-31 Thread Bruno Haible
2010-01-31 Bruno Haible br...@clisp.org Work around getline() bug on FreeBSD 8.0. * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer and a non-zero size. * tests/test-getline.c (main): Likewise. * doc/posix-functions/getline.texi: Mention

Re: [Bug-tar] getline() differences FreeBSD / GNU libc

2010-01-26 Thread Eric Blake
[adding bug-gnulib, as the source of tar's getline replacement] According to noordsij on 1/21/2010 6:37 AM: Dear GNU tar maintainer(s) / fBSD gtar port maintainer(s), The problem appears to be a difference in getline() behaviour in the fBSD and GNU libc. fBSD: The caller may provide