From c3c1fb676b900ed39c0cfa984059c1d40197b601 Mon Sep 17 00:00:00 2001 From: Chris Metcalf Date: Fri, 8 Jan 2010 13:18:06 +0100 Subject: ash: fix mishandling of bash-style redirects Signed-off-by: Chris Metcalf Signed-off-by: Denys Vlasenko --- shell/ash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell') 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) do { sv_pos++; #if ENABLE_ASH_BASH_COMPAT - if (redir->nfile.type == NTO2) + if (tmp->nfile.type == NTO2) sv_pos++; #endif tmp = tmp->nfile.next; -- cgit v1.2.3