[libvirt] [PATCHv2 2/7] nodeinfo: use virDirRead API

Ján Tomko jtomko at redhat.com
Mon Apr 28 08:27:33 UTC 2014


On 04/26/2014 03:18 PM, Eric Blake wrote:
> From: Natanael Copa <ncopa at alpinelinux.org>
> 
> This makes sure that errno is reset before readdir is called, even if
> the loop does a 'continue'.
> 
> This fixes issue with musl libc which sets errno on sscanf. The
> following 'continue' makes the errno be set before calling readdir.
> 
> Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>
> Signed-off-by: Eric Blake <eblake at redhat.com>
> ---
>  src/nodeinfo.c | 31 +++++++++----------------------
>  1 file changed, 9 insertions(+), 22 deletions(-)

ACK

Jan

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


More information about the libvir-list mailing list