Matthias Bolte wrote:
2010/2/1 Jim Meyering <jim(a)meyering.net>:
> This change is nearly identical to one I made last week.
> I inspected all remaining sysconf uses, and they seem to be ok.
>
> >From 77add8762c5d00db11bb588b7ea0c9e00975c183 Mon Sep 17 00:00:00 2001
> From: Jim Meyering <meyering(a)redhat.com>
> Date: Mon, 1 Feb 2010 21:45:06 +0100
> Subject: [PATCH] util.c (two more): don't use a negative value as allocation
size
>
> * src/util/util.c (virGetUserID, virGetGroupID): In the unlikely event
> that sysconf(_SC_GETPW_R_SIZE_MAX) fails, don't use -1 as the size in
> the subsequent allocation.
> ---
ACK
Thanks. Pushed.