summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-container.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsystemd-bus/bus-container.c')
-rw-r--r--src/libsystemd-bus/bus-container.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-container.c b/src/libsystemd-bus/bus-container.c
index eac1863244..31bb624b34 100644
--- a/src/libsystemd-bus/bus-container.c
+++ b/src/libsystemd-bus/bus-container.c
@@ -44,6 +44,8 @@ int bus_container_connect(sd_bus *b) {
return -ENOMEM;
r = parse_env_file(p, NEWLINE, "LEADER", &s, "CLASS", &class, NULL);
+ if (r == -ENOENT)
+ return -EHOSTDOWN;
if (r < 0)
return r;
if (!s)