diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-19 02:46:20 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-19 07:06:08 +0100 |
commit | d2881ef96ec63c29a4ed41a23133068c821c4fb0 (patch) | |
tree | 90fbfbf9b0472fefd6ece530da6833d2109428c4 /src/basic/terminal-util.c | |
parent | namespace-util: rename arguments to prefix 'ret_' (diff) | |
download | systemd-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/basic/terminal-util.c')
-rw-r--r-- | src/basic/terminal-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/terminal-util.c b/src/basic/terminal-util.c index 488541ed23..4c1824bc83 100644 --- a/src/basic/terminal-util.c +++ b/src/basic/terminal-util.c @@ -1211,7 +1211,7 @@ int openpt_allocate_in_namespace(pid_t pid, int flags, char **ret_slave) { assert(pid > 0); - r = namespace_open(pid, &pidnsfd, &mntnsfd, NULL, &usernsfd, &rootfd); + r = namespace_open(pid, &pidnsfd, &mntnsfd, /* ret_netns_fd = */ NULL, &usernsfd, &rootfd); if (r < 0) return r; @@ -1262,7 +1262,7 @@ int open_terminal_in_namespace(pid_t pid, const char *name, int mode) { pid_t child; int r; - r = namespace_open(pid, &pidnsfd, &mntnsfd, NULL, &usernsfd, &rootfd); + r = namespace_open(pid, &pidnsfd, &mntnsfd, /* ret_netns_fd = */ NULL, &usernsfd, &rootfd); if (r < 0) return r; |