summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/sd-bus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-03-29 23:45:00 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-30 15:21:55 +0100
commit3d339fec29178af415cb5367fdf3b53fab3093c2 (patch)
treeeae71f6978fb92de6c0e0352b4de2b3ccf81a104 /src/libsystemd-bus/sd-bus.c
parent9d373862243c7807e04a0c56ac5dfab3adbb410c (diff)
bus: properly set up bus connections with sd_bus_set_exec()
Diffstat (limited to 'src/libsystemd-bus/sd-bus.c')
-rw-r--r--src/libsystemd-bus/sd-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c
index 314fa6b6bf..870d617ac1 100644
--- a/src/libsystemd-bus/sd-bus.c
+++ b/src/libsystemd-bus/sd-bus.c
@@ -718,7 +718,7 @@ int sd_bus_start(sd_bus *bus) {
if (bus->fd >= 0)
r = bus_start_fd(bus);
- else if (bus->address)
+ else if (bus->address || bus->sockaddr.sa.sa_family != AF_UNSPEC || bus->exec_path)
r = bus_start_address(bus);
else
return -EINVAL;