Bug#520744: _SC_GETGR_R_SIZE_MAX returned on amd64 too small
On Tue, Apr 14, 2009 at 09:32:04AM +0200, Guido Günther wrote:
> retitle 520744 _SC_GETGR_R_SIZE_MAX returned on amd64 too small
> user debian-amd64@lists.debian.org
> usertag 520744 debian-amd64
> thanks
>
> Hi,
> attached testcase shows that the buffersize for getgrent_r returned via
> sysconf(_SC_GETGR_R_SIZE_MAX) is too small on amd64. Using the returned
> 1024 byetes results in ERANGE. i386 and ppc also use 1024 bytes which
> works fine.
> While returning -1 is from sysconf is o.k., a too low value certainly is
> not. Can this be fixed in a Lenny point release since it might break
> arbitrary software on this architecture?
What is the example code supposed to do? I have no problem executing it
here:
$ ./group
buffer size from sysconf: 1024
gid: 124
$
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
Reply to: