[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] build: tolerate unlimited group size



On Mon, May 16, 2011 at 03:42:36PM -0600, Eric Blake wrote:
> POSIX allows sysconf(_SC_GETPW_R_SIZE_MAX) to return -1 if there
> is no fixed limit, and requires ERANGE errors to track real size.
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/getpwuid_r.html
> 
> Also, on error for get*_r functions, errno is undefined, and the
> real error was the return value.
> 
> * src/util/util.c (virGetUserEnt, virGetUserID, virGetGroupID)
> (virSetUIDGID):  Cope with sysconf failure or too small buffer.
> Reported by Matthias Bolte.
> ---

  ACK,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]