diff options
author | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-25 13:47:15 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-25 13:47:15 +0200 |
commit | 21281ac59a6ca5d8368cc4b5412792f383bbb2a9 (patch) | |
tree | 199e519b409d7109dd8f11f40c4e09766b407199 /common/hush.c | |
parent | 603ccc23789cb53961306a4021fbcc55bb86e7eb (diff) | |
download | barebox-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.c | 5 |
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]); |