diff options
author | Rob Landley <rob@landley.net> | 2020-04-07 16:54:42 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-04-07 16:54:42 -0500 |
commit | d5680f026fb83c8ff73a404eeabcc28211c5708d (patch) | |
tree | 8b0df47ea02b073665f8f3acbcfb91044b6c2ffd /main.c | |
parent | 75240c713b7aa0a769852d643589c90719f2e31b (diff) | |
download | toybox-d5680f026fb83c8ff73a404eeabcc28211c5708d.tar.gz |
Don't let NOFORK arguments run through the multiplexer.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -146,7 +146,7 @@ void toy_init(struct toy_list *which, char *argv[]) void toy_exec_which(struct toy_list *which, char *argv[]) { // Return if we can't find it (which includes no multiplexer case), - if (!which) return; + if (!which || (which->flags&TOYFLAG_NOFORK)) return; // Return if stack depth getting noticeable (proxy for leaked heap, etc). |