diff options
Diffstat (limited to 'meta/packages/busybox/busybox-1.15.3/ash_fix_redirection_of_fd_0.patch')
-rw-r--r-- | meta/packages/busybox/busybox-1.15.3/ash_fix_redirection_of_fd_0.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/packages/busybox/busybox-1.15.3/ash_fix_redirection_of_fd_0.patch b/meta/packages/busybox/busybox-1.15.3/ash_fix_redirection_of_fd_0.patch new file mode 100644 index 0000000000..5c791271e5 --- /dev/null +++ b/meta/packages/busybox/busybox-1.15.3/ash_fix_redirection_of_fd_0.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | Fix redirection of fd 0 in scripts sourced from interactive ash | ||
2 | |||
3 | Based on Busybox git 08d8b3cee1329d390f91bce419e2b4dadf484952 by | ||
4 | Denys Vlasenko <vda.linux@googlemail.com>. | ||
5 | |||
6 | Can be removed when we bump to 1.16.1 + patches or later | ||
7 | |||
8 | JL 03/06/10 | ||
9 | Index: busybox-1.15.3/shell/ash.c | ||
10 | =================================================================== | ||
11 | --- busybox-1.15.3.orig/shell/ash.c 2009-12-12 21:16:38.000000000 +0000 | ||
12 | +++ busybox-1.15.3/shell/ash.c 2010-06-03 09:44:59.484647637 +0100 | ||
13 | @@ -5071,7 +5071,7 @@ | ||
14 | return 0; | ||
15 | pf = g_parsefile; | ||
16 | while (pf) { | ||
17 | - if (fd == pf->fd) { | ||
18 | + if (pf->fd > 0 && fd == pf->fd) { | ||
19 | return 1; | ||
20 | } | ||
21 | pf = pf->prev; | ||