Set correct address when using --address=systemd:
authorSimon Peeters <peeters.simon@gmail.com>
Sun, 7 Oct 2012 14:59:30 +0000 (16:59 +0200)
committerAnas Nashif <anas.nashif@intel.com>
Wed, 19 Jun 2013 10:07:32 +0000 (06:07 -0400)
commit154b7e17b8300818fd22ce5ad2b1b09542aefc39
treedf2649cc059536a07f4204258738acf3ea977998
parentaf26865cffd12a87b99081a34932b8d6e3ce0e0f
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.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=50962
Signed-off-by: Simon Peeters <peeters.simon@gmail.com>
Applied-upstream: 1.7.0, commit:d728fdc655f17031da3bb129ab2fd17dadf0fe3a
dbus/dbus-server-unix.c
dbus/dbus-sysdeps-unix.c
dbus/dbus-sysdeps-unix.h