commit | 764e2ee3ecbcdb1648b1af5314298be048eaef8c | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Tue Oct 15 18:45:47 2019 -0500 |
committer | Rob Landley <rob@landley.net> | Tue Oct 15 18:45:47 2019 -0500 |
tree | 46c892ca589e106af98e6a39292aedc9943df790 | |
parent | ae572524341c427b1f551ea4074a8c1d3d808681 [diff] [blame] |
Off by one error when you try to run a command through two symlinks.
diff --git a/main.c b/main.c index bc13ba2..836ede5 100644 --- a/main.c +++ b/main.c
@@ -193,7 +193,7 @@ 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); } }