]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virgdbus: fix getting non-shared DBus connection
authorPavel Hrdina <phrdina@redhat.com>
Mon, 9 Nov 2020 16:10:56 +0000 (17:10 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 9 Nov 2020 22:42:33 +0000 (23:42 +0100)
commit43ee7c6db119add9591357b643378d090769307b
tree05c953f4f649249428abdaba6f9f2f49e793d6d7
parent18c73a4c70b405825762dfd0151ab300fee15534
virgdbus: fix getting non-shared DBus connection

We need to pass some flags in order to properly initialize the
connection otherwise it will not work. This copies what GLib does
for g_bus_get_sync() internally.

This fixes an issue with LXC driver where libvirt was not able to
register any VM with machined.

Reported-by: Matthias Maier <tamiko@gentoo.org>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virgdbus.c