From: Wolfgang Bumiller Date: Tue, 13 Aug 2019 12:17:30 +0000 (+0200) Subject: attach: don't close stdout of getent X-Git-Tag: lxc-4.0.0~131^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59f0e209cc0ef0e4b047e42452a8d13dd97426f7;p=thirdparty%2Flxc.git attach: don't close stdout of getent Signed-off-by: Wolfgang Bumiller --- diff --git a/src/lxc/attach.c b/src/lxc/attach.c index f63331ede..80c41fe26 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); }