[libvirt] [PATCH] build: avoid strerror_r pitfalls

Eric Blake eblake at redhat.com
Wed May 25 16:13:45 UTC 2011


On 05/24/2011 11:23 PM, Matthias Bolte wrote:
> 2011/5/25 Eric Blake <eblake at redhat.com>:
>> In particular, this guarantees that virStrerror always gives a
>> useful result.
>>
>> * .gnulib: Update to latest, for (lots of) strerror_r fixes.
>> ---
>>
>> This patch removes the need for Daniel's proposal:
>> https://www.redhat.com/archives/libvir-list/2011-May/msg01236.html
>>
>> Now gnulib guarantees that strerror_r will never leave garbage
>> in the buffer.

I'm impressed - I'm now up to 3 out of 3 glibc bugs reported and fixed
in the last month (more often than not, I've had the misfortune of my
glibc bugs report attempts being rejected with rather scathing comments
that the bug is not in glibc but in my understanding, or left without a
response for months on end).  Leaving garbage in buf upon strerror_r
failure was one of those fixes.

> This also pulls in the fix for the fnmatch compile warning.
> 
> ACK.

Thanks; pushed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110525/624fac31/attachment-0001.sig>


More information about the libvir-list mailing list