]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-img.c
block: failed qemu-img command should return non-zero exit code
authorXu Tian <xutian@redhat.com>
Sun, 9 Oct 2016 09:17:27 +0000 (17:17 +0800)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Oct 2016 15:54:03 +0000 (17:54 +0200)
commite84a0dd5a75d8e89bec05fac432941988191df32
treea73eb5b4fc433aee78f74cc923b37835233aeed9
parenta3ae21ec3fe036f536dc94cad735931777143103
block: failed qemu-img command should return non-zero exit code

If the backing file cannot be opened when doing qemu-img rebase, the
variable 'ret' was not assigned a non-zero value, and the qemu-img
process terminated with exit code zero. Fix this.

Signed-off-by: Xu Tian <xutian@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img.c