bus: properly set up bus connections with sd_bus_set_exec()

This commit is contained in:
Lennart Poettering 2013-03-29 23:45:00 +01:00
parent 9d37386224
commit 3d339fec29

View File

@ -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;