]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libvirt_iohelper: record the libvirt_iohelper's error message at virFileWrapperFdFree
authorxinhua.Cao <caoxinhua@huawei.com>
Mon, 23 Jul 2018 12:22:41 +0000 (20:22 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 14 Aug 2018 14:00:25 +0000 (16:00 +0200)
commitb0c3e931804a86cd7146db0164ab4843039c410b
tree9ecc80015ffb7a2615d32840bee82a89f1529eda
parent1df3fb7ccbba938aed4ce43ff3ea10f8eec1490c
libvirt_iohelper: record the libvirt_iohelper's error message at virFileWrapperFdFree

Currently iohelper's error log is recorded in virFileWrapperFdClose.
However, if something goes wrong the caller might not even get to
calling virFileWrapperFdClose and call virFileWrapperFdFree
directly. Therefore the error reporting should happen there.

Signed-off-by: xinhua.Cao <caoxinhua@huawei.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virfile.c