]> xenbits.xensource.com Git - libvirt.git/commit
nodeinfo: use virDirRead API
authorNatanael Copa <ncopa@alpinelinux.org>
Sun, 20 Apr 2014 11:53:46 +0000 (13:53 +0200)
committerEric Blake <eblake@redhat.com>
Mon, 28 Apr 2014 23:52:45 +0000 (17:52 -0600)
commit92cf75df8e46d99c55b19374e8b9e5d1a804db25
treed1a19bec6b0b781c4b182da2ebc991fa386d8325
parent1ce2f1a4349654c9311f00d8b745ed21e26a5ee7
nodeinfo: use virDirRead API

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@alpinelinux.org>
Signed-off-by: Eric Blake <eblake@redhat.com>
src/nodeinfo.c