diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2010-01-08 13:18:06 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-08 13:18:06 +0100 |
commit | c3c1fb676b900ed39c0cfa984059c1d40197b601 (patch) | |
tree | 59c3e93def4b48ae3412ed19e9915f5f913e4019 | |
parent | 999e442d5c11e97b7dfd6cadbbab30f7ac1dc6ce (diff) | |
download | busybox-w32-c3c1fb676b900ed39c0cfa984059c1d40197b601.tar.gz busybox-w32-c3c1fb676b900ed39c0cfa984059c1d40197b601.tar.bz2 busybox-w32-c3c1fb676b900ed39c0cfa984059c1d40197b601.zip |
ash: fix mishandling of bash-style redirects
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/ash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index 8d7c4ca75..2c1779f32 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -5111,7 +5111,7 @@ redirect(union node *redir, int flags) | |||
5111 | do { | 5111 | do { |
5112 | sv_pos++; | 5112 | sv_pos++; |
5113 | #if ENABLE_ASH_BASH_COMPAT | 5113 | #if ENABLE_ASH_BASH_COMPAT |
5114 | if (redir->nfile.type == NTO2) | 5114 | if (tmp->nfile.type == NTO2) |
5115 | sv_pos++; | 5115 | sv_pos++; |
5116 | #endif | 5116 | #endif |
5117 | tmp = tmp->nfile.next; | 5117 | tmp = tmp->nfile.next; |