]> git.ipfire.org Git - thirdparty/libvirt.git/commit
openvz: check the exitstatus of vzlist
authorLaine Stump <laine@laine.org>
Fri, 24 Aug 2012 05:43:19 +0000 (01:43 -0400)
committerLaine Stump <laine@laine.org>
Fri, 24 Aug 2012 07:07:00 +0000 (03:07 -0400)
commit46dc643232089e275ece27fef66f441be99d242d
tree9ba6a0351505c48bee704c1d3d40b0283b34f252
parent352cbae8b33b8bb077c780325f2d21033c063f05
openvz: check the exitstatus of vzlist

I noticed this while auditing all calls to virCommandRun that request
an exit status from virCommandRun. Two functions in the openvz driver

  openvzDomainGetBarrierLimit
  openvzDomainSetBarrierLimit

request an exit status from virCommandRun (thus assuring that
virCommandRun won't log any errors just due to a non-0 exit status),
but then fail to examine that exit status. This could result in the
functions believing that the call to "vzlist" was successful, even
though it may have encountered an error.
src/openvz/openvz_driver.c