Re: [libvirt] [PATCH] util.c (two more): don't use a negative value as allocation size

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

 



Matthias Bolte wrote:
> 2010/2/1 Jim Meyering <jim@xxxxxxxxxxxx>:
>> 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@xxxxxxxxxx>
>> 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.

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]