Commit 59f0e209 by Wolfgang Bumiller

attach: don't close stdout of getent

parent 2ffda4c4
......@@ -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);
}
......
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