From: Frantisek Sumsal Date: Thu, 9 Apr 2026 16:11:33 +0000 (+0200) Subject: portablectl: fix swapped arguments for setns() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44d0f273fa9d237c73b80b110a67da5045822796;p=thirdparty%2Fsystemd.git portablectl: fix swapped arguments for setns() Follow-up for 824fcb95c9e66abe6b350ebab6e0593498ff7aa1. --- diff --git a/src/portable/portable.c b/src/portable/portable.c index bae23b1a511..2a03c6f7ae6 100644 --- a/src/portable/portable.c +++ b/src/portable/portable.c @@ -524,7 +524,7 @@ static int portable_extract_by_path( seq[0] = safe_close(seq[0]); errno_pipe_fd[0] = safe_close(errno_pipe_fd[0]); - if (setns(CLONE_NEWUSER, userns_fd) < 0) { + if (setns(userns_fd, CLONE_NEWUSER) < 0) { r = log_debug_errno(errno, "Failed to join userns: %m"); report_errno_and_exit(errno_pipe_fd[1], r); }