[git commit] hush: fix dup_CLOEXEC() call without "avoid_fd" parameter
Denys Vlasenko
vda.linux at googlemail.com
Tue Jun 26 13:50:33 UTC 2018
commit: https://git.busybox.net/busybox/commit/?id=d1a83234c05e0a977e33d409d3a8cd0441e9e5a1
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
shell/hush.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
G_interactive_fd = dup_CLOEXEC(STDIN_FILENO, 254);
if (G_interactive_fd < 0) {
/* try to dup to any fd */
- G_interactive_fd = dup_CLOEXEC(STDIN_FILENO);
+ G_interactive_fd = dup_CLOEXEC(STDIN_FILENO, -1);
if (G_interactive_fd < 0)
/* give up */
G_interactive_fd = 0;
More information about the busybox-cvs
mailing list