From dc11ed8d3bc9a3d5b3610db813b63f214d4932dd Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 29 Nov 2014 21:11:34 -0600 Subject: 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". --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index ed6706a9..eefebf9e 100644 --- a/main.c +++ b/main.c @@ -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; -- cgit v1.2.3