[git commit master] ash: fix mishandling of bash-style redirects

Denys Vlasenko vda.linux at googlemail.com
Fri Jan 8 12:18:06 UTC 2010


commit: http://git.busybox.net/busybox/commit/?id=c3c1fb676b900ed39c0cfa984059c1d40197b601
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Chris Metcalf <cmetcalf at tilera.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 shell/ash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/shell/ash.c b/shell/ash.c
index 8d7c4ca..2c1779f 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;
-- 
1.6.3.3



More information about the busybox-cvs mailing list