summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-container.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-23 03:43:43 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-23 04:20:55 +0100
commit8f04d2ebbaa5f330e5240d29917c02bce9892cff (patch)
tree8cf0bb91535b9c010dc420fc4084f0276931bc0a /src/libsystemd-bus/bus-container.c
parentcd789fdf45f188197bf99998e5a8be0f8c614c66 (diff)
bus: make sure to request peer cred only after connect(), not before
Diffstat (limited to 'src/libsystemd-bus/bus-container.c')
-rw-r--r--src/libsystemd-bus/bus-container.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsystemd-bus/bus-container.c b/src/libsystemd-bus/bus-container.c
index 02886c4ded..1989afa82a 100644
--- a/src/libsystemd-bus/bus-container.c
+++ b/src/libsystemd-bus/bus-container.c
@@ -52,9 +52,7 @@ int bus_container_connect_socket(sd_bus *b) {
b->output_fd = b->input_fd;
- r = bus_socket_setup(b);
- if (r < 0)
- return r;
+ bus_socket_setup(b);
child = fork();
if (child < 0)