diff options
author | Rob Landley <rob@landley.net> | 2014-11-29 21:11:34 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-11-29 21:11:34 -0600 |
commit | dc11ed8d3bc9a3d5b3610db813b63f214d4932dd (patch) | |
tree | 8c35c2934f2446564e3ff6c06ae064c28cf716d9 /main.c | |
parent | 7701bf9a35cf92e6bc6cf77bf28076c1d8181da9 (diff) | |
download | toybox-dc11ed8d3bc9a3d5b3610db813b63f214d4932dd.tar.gz toybox-dc11ed8d3bc9a3d5b3610db813b63f214d4932dd.tar.bz2 toybox-dc11ed8d3bc9a3d5b3610db813b63f214d4932dd.zip |
The "re-exec to regain root permissions" logic broke the error message when calling root-only commands through the multiplexer.
It would say "no such command" when it should say "not root".
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -149,7 +149,7 @@ void toybox_main(void) toys.which = toy_list; if (toys.argv[1]) { - toys.optc = 0; + toys.optc = toys.recursion = 0; toy_exec(toys.argv+1); if (toys.argv[1][0] == '-') goto list; |