Re: [libvirt] [PATCHv2 0/7] saner readdir usage

2014-04-28 Thread Ján Tomko
On 04/26/2014 06:14 AM, Eric Blake wrote: This extends the work started by Nataneal to cover the entire tree. Basically, readdir() is awkward to use correctly: to properly check for (unlikely) errors, one must pre-set errno. Forcing everything to go through a wrapper ensures that all our

Re: [libvirt] [PATCHv2 0/7] saner readdir usage

2014-04-28 Thread Laine Stump
On 04/28/2014 12:23 PM, Ján Tomko wrote: On 04/26/2014 06:14 AM, Eric Blake wrote: This extends the work started by Nataneal to cover the entire tree. Basically, readdir() is awkward to use correctly: to properly check for (unlikely) errors, one must pre-set errno. Forcing everything to go

Re: [libvirt] [PATCHv2 0/7] saner readdir usage

2014-04-28 Thread Eric Blake
On 04/28/2014 03:23 AM, Ján Tomko wrote: On 04/26/2014 06:14 AM, Eric Blake wrote: This extends the work started by Nataneal to cover the entire tree. Basically, readdir() is awkward to use correctly: to properly check for (unlikely) errors, one must pre-set errno. Forcing everything to go

[libvirt] [PATCHv2 0/7] saner readdir usage

2014-04-25 Thread Eric Blake
This extends the work started by Nataneal to cover the entire tree. Basically, readdir() is awkward to use correctly: to properly check for (unlikely) errors, one must pre-set errno. Forcing everything to go through a wrapper ensures that all our uses will be consistent; this also fixes several