From 764e2ee3ecbcdb1648b1af5314298be048eaef8c Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 15 Oct 2019 18:45:47 -0500 Subject: Off by one error when you try to run a command through two symlinks. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.3