Herbert Xu ea5e24281a redir: Fix double close in dupredirect
For a redirection like "> /dev/null" dupredirect will close the
newly opened file descriptor twice in a row because sh_dup2 also
closes the new file descriptor.

Remove the extra close in dupredirect.

Fixes: 509f5b0dcd71 ("redir: Use memfd_create instead of pipe")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2024-05-12 12:07:29 +08:00
2018-11-19 18:59:50 +08:00
2011-08-17 09:34:47 +08:00
2005-09-26 18:32:28 +10:00
Description
No description provided
2.1 MiB
Languages
C 69.3%
Roff 10.7%
Shell 9.6%
Makefile 8.8%
M4 1%
Other 0.6%