Re: [libvirt] [PATCH 3/6] Fix error handling of readdir() in virFileLoopDeviceOpen

2013-05-10 Thread Michal Privoznik
On 03.05.2013 15:49, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > To correctly handle errors from readdir() you must set 'errno' > to zero before invoking it & check its value afterwards to > distinguish error from EOF. > > Signed-off-by: Daniel P. Berrange > --- > src/util/virfi

[libvirt] [PATCH 3/6] Fix error handling of readdir() in virFileLoopDeviceOpen

2013-05-03 Thread Daniel P. Berrange
From: "Daniel P. Berrange" To correctly handle errors from readdir() you must set 'errno' to zero before invoking it & check its value afterwards to distinguish error from EOF. Signed-off-by: Daniel P. Berrange --- src/util/virfile.c | 10 -- 1 file changed, 8 insertions(+), 2 deletion