aboutsummaryrefslogtreecommitdiff
path: root/toys/mkfifo.c
diff options
context:
space:
mode:
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);