summaryrefslogtreecommitdiffstats
path: root/common/hush.c
diff options
context:
space:
mode:
authorSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-25 13:47:15 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-25 13:47:15 +0200
commit21281ac59a6ca5d8368cc4b5412792f383bbb2a9 (patch)
tree199e519b409d7109dd8f11f40c4e09766b407199 /common/hush.c
parent603ccc23789cb53961306a4021fbcc55bb86e7eb (diff)
downloadbarebox-21281ac59a6ca5d8368cc4b5412792f383bbb2a9.tar.gz
barebox-21281ac59a6ca5d8368cc4b5412792f383bbb2a9.tar.xz
remove hack from hush which did the wrong thing
Diffstat (limited to 'common/hush.c')
-rw-r--r--common/hush.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/common/hush.c b/common/hush.c
index 181491a238..0dd406eaed 100644
--- a/common/hush.c
+++ b/common/hush.c
@@ -574,14 +574,9 @@ static int run_pipe_real(struct pipe *pi)
printf ("Usage:\n%s\n", cmdtp->usage);
return -1;
}
- child->argv+=i; /* XXX horrible hack */
/* OK - call function to do the command */
-
rcode = cmdtp->cmd(cmdtp, child->argc-i, &child->argv[i]);
-
- child->argv-=i; /* XXX restore hack so free() can work right */
-
return rcode;
} else {
printf ("Unknown command '%s' - try 'help'\n", child->argv[i]);