]> git.proxmox.com Git - lxc.git/blob - debian/patches/extra/0005-attach-don-t-close-stdout-of-getent.patch
merge fix for 'getent' in lxc-attach
[lxc.git] / debian / patches / extra / 0005-attach-don-t-close-stdout-of-getent.patch
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
5
6 Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 ---
8 src/lxc/attach.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
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)
16 close(STDERR_FILENO);
17 } else {
18 (void)dup3(fd, STDIN_FILENO, O_CLOEXEC);
19 - (void)dup3(fd, STDOUT_FILENO, O_CLOEXEC);
20 + (void)dup3(fd, STDERR_FILENO, O_CLOEXEC);
21 close(fd);
22 }
23
24 --
25 2.20.1
26