aboutsummaryrefslogtreecommitdiff
path: root/toys/android
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-01-19 18:03:17 -0600
committerRob Landley <rob@landley.net>2016-01-19 18:03:17 -0600
commitee660c977371b3bfc184f3ca3a6b1c84dcaa1686 (patch)
tree48847cf03885e4098be05928ef5e07b77bb1fc3e /toys/android
parent559f36cf91e0872b3cac80c8f3ccc9a91f3bb2d6 (diff)
downloadtoybox-ee660c977371b3bfc184f3ca3a6b1c84dcaa1686.tar.gz
runcon needs to exec, not recurse.
Diffstat (limited to 'toys/android')
-rw-r--r--toys/android/runcon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toys/android/runcon.c b/toys/android/runcon.c
index c2f71e2d..8831cbfb 100644
--- a/toys/android/runcon.c
+++ b/toys/android/runcon.c
@@ -23,5 +23,6 @@ void runcon_main(void)
if (setexeccon(context)) perror_exit("Could not set context to %s", context);
+ toys.stacktop = 0;
xexec(++toys.optargs);
}