The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/3119
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === See the first context line, we want to replace stderr, as stdout is the pipe from which we want to read the result.
From 59f0e209cc0ef0e4b047e42452a8d13dd97426f7 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller <w.bumil...@proxmox.com> Date: Tue, 13 Aug 2019 14:17:30 +0200 Subject: [PATCH] attach: don't close stdout of getent Signed-off-by: Wolfgang Bumiller <w.bumil...@proxmox.com> --- src/lxc/attach.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/attach.c b/src/lxc/attach.c index f63331edec..80c41fe263 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -459,7 +459,7 @@ static char *lxc_attach_getpwshell(uid_t uid) close(STDERR_FILENO); } else { (void)dup3(fd, STDIN_FILENO, O_CLOEXEC); - (void)dup3(fd, STDOUT_FILENO, O_CLOEXEC); + (void)dup3(fd, STDERR_FILENO, O_CLOEXEC); close(fd); }
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel