aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/posix/mkfifo.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/toys/posix/mkfifo.c b/toys/posix/mkfifo.c
index 44fbc994..322c0bd2 100644
--- a/toys/posix/mkfifo.c
+++ b/toys/posix/mkfifo.c
@@ -3,8 +3,6 @@
* Copyright 2012 Georgi Chorbadzhiyski <georgi@unixsol.org>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/mkfifo.html
- *
- * TODO: Add -m
USE_MKFIFO(NEWTOY(mkfifo, "<1m:", TOYFLAG_BIN))
@@ -30,9 +28,7 @@ void mkfifo_main(void)
char **s;
TT.mode = 0666;
- if (toys.optflags & FLAG_m) {
- TT.mode = string_to_mode(TT.m_string, 0);
- }
+ if (toys.optflags & FLAG_m) TT.mode = string_to_mode(TT.m_string, 0);
for (s = toys.optargs; *s; s++) {
if (mknod(*s, S_IFIFO | TT.mode, 0) < 0) {