projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Cut-n-paste strikes again
[oweals/busybox.git]
/
shell
/
lash.c
diff --git
a/shell/lash.c
b/shell/lash.c
index fa416c74261e635ce41250a69b0c44e15cd53966..f454e699084beb1afda05b521a7a54d1c13c5451 100644
(file)
--- a/
shell/lash.c
+++ b/
shell/lash.c
@@
-656,6
+656,7
@@
static int setup_redirects(struct child_prog *prog, int squirrel[])
if (openfd != redir->fd) {
if (squirrel && redir->fd < 3) {
squirrel[redir->fd] = dup(redir->fd);
+ fcntl (squirrel[redir->fd], F_SETFD, FD_CLOEXEC);
}
dup2(openfd, redir->fd);
close(openfd);