diff options
Diffstat (limited to 'app-emulation/libvirt/files/libvirt-6.8.0-fix-libvirt-lxc-dbus.patch')
-rw-r--r-- | app-emulation/libvirt/files/libvirt-6.8.0-fix-libvirt-lxc-dbus.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app-emulation/libvirt/files/libvirt-6.8.0-fix-libvirt-lxc-dbus.patch b/app-emulation/libvirt/files/libvirt-6.8.0-fix-libvirt-lxc-dbus.patch new file mode 100644 index 000000000000..ea1a23795330 --- /dev/null +++ b/app-emulation/libvirt/files/libvirt-6.8.0-fix-libvirt-lxc-dbus.patch @@ -0,0 +1,24 @@ +https://bugs.gentoo.org/753761 + +diff --git a/src/util/virgdbus.c b/src/util/virgdbus.c +index 4360a6a..4ad1a5c 100644 +--- a/src/util/virgdbus.c ++++ b/src/util/virgdbus.c +@@ -54,11 +54,15 @@ virGDBusBusInit(GBusType type, GError **error) + if (sharedBus) { + return g_bus_get_sync(type, NULL, error); + } else { ++ GDBusConnectionFlags dbusFlags = ++ G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT | ++ G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION; ++ + address = g_dbus_address_get_for_bus_sync(type, NULL, error); +- if (error) ++ if (*error) + return NULL; + return g_dbus_connection_new_for_address_sync(address, +- G_DBUS_CONNECTION_FLAGS_NONE, ++ dbusFlags, + NULL, + NULL, + error); |