[libvirt] [PATCH]: don't harcode buffer for getgrnam_r

Guido Günther agx at sigxcpu.org
Thu Apr 16 07:19:38 UTC 2009

determines the maximum needed buffersize for getgrnam_r using sysconf
instead of hardcoding it to 1024 and increases the buffer on ERANGE.
The latter is needed since sysconf is allowed to return -1. Furthermore
some glibc versions seem to return a too small buffer on amd64
(http://bugs.debian.org/520744). O.k. to apply?
 -- Guido
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-increase-buffer-on-ERANGE.patch
Type: text/x-diff
Size: 2577 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090416/bb9f5828/attachment-0001.bin>

More information about the libvir-list mailing list