From: Christian Brauner Date: Mon, 1 Feb 2021 13:50:55 +0000 (+0100) Subject: attach: fix logging for stdfd replacement X-Git-Tag: lxc-5.0.0~309^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93b9960a09c63b67df64aa6baeeba61d09fecb71;p=thirdparty%2Flxc.git attach: fix logging for stdfd replacement Signed-off-by: Christian Brauner --- diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 82e9d9a47..3dc5b1a10 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -1134,11 +1134,11 @@ __noreturn static void do_attach(struct attach_payload *ap) if (options->stdout_fd >= 0 && options->stdout_fd != STDOUT_FILENO) if (dup2(options->stdout_fd, STDOUT_FILENO)) - SYSDEBUG("Failed to replace stdout with %d", options->stdin_fd); + SYSDEBUG("Failed to replace stdout with %d", options->stdout_fd); if (options->stderr_fd >= 0 && options->stderr_fd != STDERR_FILENO) if (dup2(options->stderr_fd, STDERR_FILENO)) - SYSDEBUG("Failed to replace stderr with %d", options->stdin_fd); + SYSDEBUG("Failed to replace stderr with %d", options->stderr_fd); /* close the old fds */ if (options->stdin_fd > STDERR_FILENO)