mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
bus: properly set up bus connections with sd_bus_set_exec()
This commit is contained in:
parent
9d37386224
commit
3d339fec29
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user