]> git.ipfire.org Git - thirdparty/qemu.git/commit
qemu-img/convert: Always set ret < 0 on error
authorMax Reitz <mreitz@redhat.com>
Thu, 13 Apr 2017 20:33:59 +0000 (22:33 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 31 Jul 2017 20:55:25 +0000 (15:55 -0500)
commitc37a62b751647927ec8d09fd885cf4f36f81255c
tree0685fd43cb9caca72e76ce3d4b15fc79965bfefa
parent4aa16db9cf4219c0bb4fa0291349eb5d26c34a06
qemu-img/convert: Always set ret < 0 on error

Otherwise the qemu-img process will exit with EXIT_SUCCESS instead of
EXIT_FAILURE.

Cc: qemu-stable <qemu-stable@nongnu.org>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
* applied directly to stable, upstream code has issue fixed via a
  refactoring introduced by 9fd77f9, which isn't targetted for stable
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qemu-img.c