]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix starting of VMs with empty CDROM drives
authorPeter Krempa <pkrempa@redhat.com>
Fri, 25 Jul 2014 11:15:47 +0000 (13:15 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 25 Jul 2014 12:33:07 +0000 (14:33 +0200)
commitefdb9117eec673d08ce289dd467ee2c3f5060806
tree21c78031315c4659155a2e02adf7d9426fe57413
parent15e38ebbf176138708ab9bff5a61aff84d7648f6
qemu: Fix starting of VMs with empty CDROM drives

Since 24e5cafba6dbc2722e05f92dc0ae31b0f938f9f0 (thankfully unreleased)
when a VM with an empty disk drive would be started the code would call
stat() on NULL path as a check was missing from the callback rendering
machines unstartable.

Report success when the path is empty (denoting an empty drive).
src/qemu/qemu_driver.c