From 977e48e1626b3e3f1f1f9b14f05ffc11e252455f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 20 Oct 2014 19:52:29 -0500 Subject: Add TOYBOX_NORECURSE so xexec() won't make internal function calls. --- lib/xwrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/xwrap.c b/lib/xwrap.c index 341aac3..b7eb274 100644 --- a/lib/xwrap.c +++ b/lib/xwrap.c @@ -137,7 +137,7 @@ void xexec_optargs(int skip) // with a path isn't a builtin, so /bin/sh won't match the builtin sh. void xexec(char **argv) { - if (CFG_TOYBOX) toy_exec(argv); + if (CFG_TOYBOX && !CFG_TOYBOX_NORECURSE) toy_exec(argv); execvp(argv[0], argv); perror_exit("exec %s", argv[0]); -- cgit v1.2.3