portablectl: fix swapped arguments for setns()

Follow-up for 824fcb95c9.
This commit is contained in:
Frantisek Sumsal
2026-04-09 20:43:42 +01:00
committed by Luca Boccassi
parent b0083b2a5e
commit 44d0f273fa
+1 -1
View File
@@ -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);
}