aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-04-07 16:54:42 -0500
committerRob Landley <rob@landley.net>2020-04-07 16:54:42 -0500
commitd5680f026fb83c8ff73a404eeabcc28211c5708d (patch)
tree8b0df47ea02b073665f8f3acbcfb91044b6c2ffd /main.c
parent75240c713b7aa0a769852d643589c90719f2e31b (diff)
downloadtoybox-d5680f026fb83c8ff73a404eeabcc28211c5708d.tar.gz
Don't let NOFORK arguments run through the multiplexer.
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index b67b8cd7..7e3ca39b 100644
--- a/main.c
+++ b/main.c
@@ -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).