]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsystemd: Fix error check
authorMarc Hartmayer <mhartmay@linux.vnet.ibm.com>
Fri, 5 Aug 2016 16:04:27 +0000 (18:04 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 8 Aug 2016 06:15:59 +0000 (08:15 +0200)
commitcdf065537f7e490760a367f327f181437623b810
tree4f75f3cbe4a970ee8d4802c01c30e18cf78b5166
parent7e1ca80d87c2918eb579c589ea306de88c9d9ad6
virsystemd: Fix error check

Commit b3e4401dc620 introduced a check to ignore an error if the guest
is already terminated. However the check accidentally compared
error.code with VIR_ERR_ERROR, which is an error level, not an error
code. Because of this, almost every error got silently ignored.

Fixes: b3e4401dc620 ("systemd: don't report an error if the guest is
already terminated")

Signed-off-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
Reviewed-by: Sascha Silbe <silbe@linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
src/util/virsystemd.c