summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-10-20 19:52:29 -0500
committerRob Landley <rob@landley.net>2014-10-20 19:52:29 -0500
commit977e48e1626b3e3f1f1f9b14f05ffc11e252455f (patch)
treebcc50a517b5e6aed0a5f1be74b74c72bd491a716 /lib
parent8aa527684c837c18621b76f5ef440caa2f05d0b0 (diff)
downloadtoybox-977e48e1626b3e3f1f1f9b14f05ffc11e252455f.tar.gz
toybox-977e48e1626b3e3f1f1f9b14f05ffc11e252455f.tar.bz2
toybox-977e48e1626b3e3f1f1f9b14f05ffc11e252455f.zip
Add TOYBOX_NORECURSE so xexec() won't make internal function calls.
Diffstat (limited to 'lib')
-rw-r--r--lib/xwrap.c2
1 files changed, 1 insertions, 1 deletions
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]);