Unverified Commit faec88e5 by Christian Brauner Committed by GitHub

Merge pull request #3119 from Blub/2019-08-13/fix_lxc_attach_getent_stderr

attach: don't close stdout of getent
parents 2ffda4c4 59f0e209
...@@ -459,7 +459,7 @@ static char *lxc_attach_getpwshell(uid_t uid) ...@@ -459,7 +459,7 @@ static char *lxc_attach_getpwshell(uid_t uid)
close(STDERR_FILENO); close(STDERR_FILENO);
} else { } else {
(void)dup3(fd, STDIN_FILENO, O_CLOEXEC); (void)dup3(fd, STDIN_FILENO, O_CLOEXEC);
(void)dup3(fd, STDOUT_FILENO, O_CLOEXEC); (void)dup3(fd, STDERR_FILENO, O_CLOEXEC);
close(fd); close(fd);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment