mirror of
https://salsa.debian.org/debian/dash.git
synced 2026-01-28 02:14:44 +00:00
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>
Description
No description provided
Languages
C
69.3%
Roff
10.7%
Shell
9.6%
Makefile
8.8%
M4
1%
Other
0.6%