]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
bhyve: Fix build
authorEric Blake <eblake@redhat.com>
Tue, 9 Jul 2019 15:36:31 +0000 (10:36 -0500)
committerEric Blake <eblake@redhat.com>
Tue, 9 Jul 2019 15:42:39 +0000 (10:42 -0500)
Continuous integration caught that although 'make syntax-check' was
sufficient to let me be aware that I had to change bhyve to use
s/virDomainShutdownEnsureACL/virDomainShutdownFlagsEnsureACL/, it was
not sufficient to note which ACL functions require 2 vs. 3 arguments
for flag validation.

Fixes: eded8aad
Signed-off-by: Eric Blake <eblake@redhat.com>
src/bhyve/bhyve_driver.c

index ffda7853b8eb1bc0972053e87aa1a2d8dc64b983..4ce9ef0b95362819cd04323bcc8e07db1f8ccca3 100644 (file)
@@ -1027,7 +1027,7 @@ bhyveDomainShutdownFlags(virDomainPtr dom, unsigned int flags)
     if (!(vm = bhyveDomObjFromDomain(dom)))
         goto cleanup;
 
-    if (virDomainShutdownFlagsEnsureACL(dom->conn, vm->def) < 0)
+    if (virDomainShutdownFlagsEnsureACL(dom->conn, vm->def, flags) < 0)
         goto cleanup;
 
     if (virDomainObjCheckActive(vm) < 0)