summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-bus
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-01-19 02:46:20 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-01-19 07:06:08 +0100
commitd2881ef96ec63c29a4ed41a23133068c821c4fb0 (patch)
tree90fbfbf9b0472fefd6ece530da6833d2109428c4 /src/libsystemd/sd-bus
parentnamespace-util: rename arguments to prefix 'ret_' (diff)
downloadsystemd-d2881ef96ec63c29a4ed41a23133068c821c4fb0.tar.xz
systemd-d2881ef96ec63c29a4ed41a23133068c821c4fb0.zip
tree-wide: add short comments for namespace_open() and namespace_enter()
Also use -EBADF when unspecified.
Diffstat (limited to 'src/libsystemd/sd-bus')
-rw-r--r--src/libsystemd/sd-bus/bus-container.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-container.c b/src/libsystemd/sd-bus/bus-container.c
index 4146a6efd3..2eca82b033 100644
--- a/src/libsystemd/sd-bus/bus-container.c
+++ b/src/libsystemd/sd-bus/bus-container.c
@@ -34,7 +34,7 @@ int bus_container_connect_socket(sd_bus *b) {
log_debug("sd-bus: connecting bus%s%s to namespace of PID "PID_FMT"...",
b->description ? " " : "", strempty(b->description), b->nspid);
- r = namespace_open(b->nspid, &pidnsfd, &mntnsfd, NULL, &usernsfd, &rootfd);
+ r = namespace_open(b->nspid, &pidnsfd, &mntnsfd, /* ret_netns_fd = */ NULL, &usernsfd, &rootfd);
if (r < 0)
return log_debug_errno(r, "Failed to open namespace of PID "PID_FMT": %m", b->nspid);