chiark / gitweb /
bus: properly set up bus connections with sd_bus_set_exec()
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Mar 2013 22:45:00 +0000 (23:45 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 30 Mar 2013 14:21:55 +0000 (15:21 +0100)
src/libsystemd-bus/sd-bus.c

index 314fa6b..870d617 100644 (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;