Set correct address when using --address=systemd:
authorSimon Peeters <peeters.simon@gmail.com>
Sun, 7 Oct 2012 14:59:30 +0000 (16:59 +0200)
committerColin Walters <walters@verbum.org>
Mon, 8 Oct 2012 20:58:10 +0000 (16:58 -0400)
commitd728fdc655f17031da3bb129ab2fd17dadf0fe3a
treef572ec3a16aa968f05cafa3d690f863d90c84298
parent778e2a5a91a12a827f283dd267ab1cfbf211734e
Set correct address when using --address=systemd:

When dbus gets launched through systemd, we need to create an address
string based on the sockets passed.

The _dbus_append_addres_from_socket() function is responsible for
extracting the address information from the file-descriptor and
formatting it in a dbus friendly way.

This fixes bus activation when running dbus under a systemd session.

https://bugs.freedesktop.org/show_bug.cgi?id=50962

Signed-off-by: Simon Peeters <peeters.simon@gmail.com>
dbus/dbus-server-unix.c
dbus/dbus-sysdeps-unix.c
dbus/dbus-sysdeps-unix.h