aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-10-15 18:45:47 -0500
committerRob Landley <rob@landley.net>2019-10-15 18:45:47 -0500
commit764e2ee3ecbcdb1648b1af5314298be048eaef8c (patch)
tree46c892ca589e106af98e6a39292aedc9943df790
parentae572524341c427b1f551ea4074a8c1d3d808681 (diff)
downloadtoybox-764e2ee3ecbcdb1648b1af5314298be048eaef8c.tar.gz
Off by one error when you try to run a command through two symlinks.
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index bc13ba22..836ede5d 100644
--- a/main.c
+++ b/main.c
@@ -193,7 +193,7 @@ void toybox_main(void)
struct toy_list *tl= toy_find(basename(libbuf));
if (tl == toy_list) unknown(basename(toys.argv[1]));
- else toy_exec_which(tl, toys.argv);
+ else toy_exec_which(tl, toys.argv+1);
}
}