aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-06-26 15:50:33 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-06-26 15:50:33 +0200
commitd1a83234c05e0a977e33d409d3a8cd0441e9e5a1 (patch)
treed3e071da26c44dc22b1885682501c5587180e036
parent8ef9effaa558fbbf7e0f3b91a3faa4074686e671 (diff)
downloadbusybox-w32-d1a83234c05e0a977e33d409d3a8cd0441e9e5a1.tar.gz
busybox-w32-d1a83234c05e0a977e33d409d3a8cd0441e9e5a1.tar.bz2
busybox-w32-d1a83234c05e0a977e33d409d3a8cd0441e9e5a1.zip
hush: fix dup_CLOEXEC() call without "avoid_fd" parameter
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/hush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 8d4478ae5..5d907e200 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -9668,7 +9668,7 @@ int hush_main(int argc, char **argv)
9668 G_interactive_fd = dup_CLOEXEC(STDIN_FILENO, 254); 9668 G_interactive_fd = dup_CLOEXEC(STDIN_FILENO, 254);
9669 if (G_interactive_fd < 0) { 9669 if (G_interactive_fd < 0) {
9670 /* try to dup to any fd */ 9670 /* try to dup to any fd */
9671 G_interactive_fd = dup_CLOEXEC(STDIN_FILENO); 9671 G_interactive_fd = dup_CLOEXEC(STDIN_FILENO, -1);
9672 if (G_interactive_fd < 0) 9672 if (G_interactive_fd < 0)
9673 /* give up */ 9673 /* give up */
9674 G_interactive_fd = 0; 9674 G_interactive_fd = 0;