diff options
Diffstat (limited to 'src/libsystemd-bus/bus-container.c')
-rw-r--r-- | src/libsystemd-bus/bus-container.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd-bus/bus-container.c b/src/libsystemd-bus/bus-container.c index 31bb624b34..25ea471a08 100644 --- a/src/libsystemd-bus/bus-container.c +++ b/src/libsystemd-bus/bus-container.c @@ -72,7 +72,7 @@ int bus_container_connect(sd_bus *b) { if (r < 0) return -ENOMEM; - rootfd = open(root, O_RDONLY|O_NOCTTY|O_CLOEXEC); + rootfd = open(root, O_RDONLY|O_NOCTTY|O_CLOEXEC|O_DIRECTORY); if (rootfd < 0) return -errno; @@ -101,7 +101,6 @@ int bus_container_connect(sd_bus *b) { if (chroot(".") < 0) _exit(255); - r = connect(b->input_fd, &b->sockaddr.sa, b->sockaddr_size); if (r < 0) { if (errno == EINPROGRESS) |