aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Janda <felix.janda@posteo.de>2012-12-27 17:52:14 +0100
committerFelix Janda <felix.janda@posteo.de>2012-12-27 17:52:14 +0100
commitd0d0f40bbbc43896e071702f51e09f206ad1809e (patch)
treefae8d5f00a15abeba5ea9c41e888cb0a2dc9f041
parent6d91e0fcaa4e80eac6053ea14944537d7a6a057b (diff)
downloadtoybox-d0d0f40bbbc43896e071702f51e09f206ad1809e.tar.gz
mkfifo -m is already implemented.
-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) {