aboutsummaryrefslogtreecommitdiff
path: root/toys/mkfifo.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2008-02-12 19:05:44 -0600
committerRob Landley <rob@landley.net>2008-02-12 19:05:44 -0600
commit0f8c4c5998317e575f1afd47dad7f6967bc271ab (patch)
tree11613ae34f3830bf02914c9381eaa5790da63801 /toys/mkfifo.c
parent6882ee89dc5da4081d5721706ad77a3e0396b1bc (diff)
downloadtoybox-0f8c4c5998317e575f1afd47dad7f6967bc271ab.tar.gz
Add TOYFLAG_UMASK.
Diffstat (limited to 'toys/mkfifo.c')
-rw-r--r--toys/mkfifo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/toys/mkfifo.c b/toys/mkfifo.c
index 0f57ca5d..39ec51ad 100644
--- a/toys/mkfifo.c
+++ b/toys/mkfifo.c
@@ -4,7 +4,7 @@
*
* See http://www.opengroup.org/onlinepubs/009695399/utilities/mkfifo.html
-USE_MKFIFO(NEWTOY(mkfifo, "<1m:", TOYFLAG_BIN))
+USE_MKFIFO(NEWTOY(mkfifo, "<1m:", TOYFLAG_BIN|TOYFLAG_UMASK))
config MKFIFO
bool "mkfifo"
@@ -40,7 +40,6 @@ void mkfifo_main(void)
error_exit("Invalid mode");
} else mode = 0644;
- umask(0);
for (i = 0; (arg = toys.optargs[i]); i++)
if (mkfifo(arg, mode))
perror_exit(arg);