diff options
author | Rob Landley <rob@landley.net> | 2019-10-15 18:45:47 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-10-15 18:45:47 -0500 |
commit | 764e2ee3ecbcdb1648b1af5314298be048eaef8c (patch) | |
tree | 46c892ca589e106af98e6a39292aedc9943df790 | |
parent | ae572524341c427b1f551ea4074a8c1d3d808681 (diff) | |
download | toybox-764e2ee3ecbcdb1648b1af5314298be048eaef8c.tar.gz |
Off by one error when you try to run a command through two symlinks.
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |