diff options
author | Rob Landley <rob@landley.net> | 2021-04-27 02:40:54 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-04-27 02:40:54 -0500 |
commit | a28ad6de961169acf50d96427259f9eba6039b5d (patch) | |
tree | 1f5ccda911dd933fa0ab7976583818827786bd39 | |
parent | 2c30d4f7a6a6ee16f9149519f6e2634b58c281cb (diff) | |
download | toybox-a28ad6de961169acf50d96427259f9eba6039b5d.tar.gz |
Use cheaper test that works with "toybox" name as a prefix.
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -95,7 +95,7 @@ void toy_singleinit(struct toy_list *which, char *argv[]) for (toys.optc = 0; toys.optargs[toys.optc]; toys.optc++); } - if (strcmp(which->name, "toybox") && !(which->flags & TOYFLAG_NOFORK)) { + if (!(CFG_TOYBOX && which == toy_list) && !(which->flags & TOYFLAG_NOFORK)) { toys.old_umask = umask(0); if (!(which->flags & TOYFLAG_UMASK)) umask(toys.old_umask); |