From: Daan De Meyer Date: Fri, 23 Jan 2026 18:15:15 +0000 (+0100) Subject: namespace-util: Fix logging in userns_enter_and_pin() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3b81859c28273cec06286f8ea0d29bda575525b;p=thirdparty%2Fsystemd.git namespace-util: Fix logging in userns_enter_and_pin() --- diff --git a/src/basic/namespace-util.c b/src/basic/namespace-util.c index 555138c2559..c3b84ea7840 100644 --- a/src/basic/namespace-util.c +++ b/src/basic/namespace-util.c @@ -618,7 +618,7 @@ int userns_enter_and_pin(int userns_fd, PidRef *ret) { "(sd-pinuserns)", /* stdio_fds= */ NULL, (int[]) { pfd[1], userns_fd }, 2, - FORK_CLOSE_ALL_FDS|FORK_DEATHSIG_SIGKILL, + FORK_CLOSE_ALL_FDS|FORK_REOPEN_LOG|FORK_DEATHSIG_SIGKILL, &pidref); if (r < 0) return r;