mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-30 17:45:23 +00:00
virsh: save: report an error if XML file can't be read
Bug: https://bugzilla.redhat.com/show_bug.cgi?id=876868
(cherry picked from commit 58110b4887
)
This commit is contained in:
parent
c18efc8e6e
commit
ec48fd7d93
@ -2933,8 +2933,10 @@ doSave(void *opaque)
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
if (xmlfile &&
|
if (xmlfile &&
|
||||||
virFileReadAll(xmlfile, 8192, &xml) < 0)
|
virFileReadAll(xmlfile, 8192, &xml) < 0) {
|
||||||
|
vshReportError(ctl);
|
||||||
goto out;
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
if (((flags || xml)
|
if (((flags || xml)
|
||||||
? virDomainSaveFlags(dom, to, xml, flags)
|
? virDomainSaveFlags(dom, to, xml, flags)
|
||||||
|
Loading…
Reference in New Issue
Block a user