diff options
author | Rob Landley <rob@landley.net> | 2008-02-12 19:05:44 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2008-02-12 19:05:44 -0600 |
commit | 0f8c4c5998317e575f1afd47dad7f6967bc271ab (patch) | |
tree | 11613ae34f3830bf02914c9381eaa5790da63801 /main.c | |
parent | 6882ee89dc5da4081d5721706ad77a3e0396b1bc (diff) | |
download | toybox-0f8c4c5998317e575f1afd47dad7f6967bc271ab.tar.gz |
Add TOYFLAG_UMASK.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -70,6 +70,7 @@ void toy_init(struct toy_list *which, char *argv[]) toys.argv = argv; if (NEED_OPTIONS && which->options) get_optflags(); else toys.optargs = argv+1; + if (which->flags & TOYFLAG_UMASK) toys.old_umask = umask(0); } // Run a toy. |