1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 Date: Tue, 13 Aug 2019 14:17:30 +0200
4 Subject: [PATCH] attach: don't close stdout of getent
6 Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
8 src/lxc/attach.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
11 diff --git a/src/lxc/attach.c b/src/lxc/attach.c
12 index 8b34a412e..6075688c2 100644
13 --- a/src/lxc/attach.c
14 +++ b/src/lxc/attach.c
15 @@ -488,7 +488,7 @@ static char *lxc_attach_getpwshell(uid_t uid)
18 (void)dup3(fd, STDIN_FILENO, O_CLOEXEC);
19 - (void)dup3(fd, STDOUT_FILENO, O_CLOEXEC);
20 + (void)dup3(fd, STDERR_FILENO, O_CLOEXEC);