commit 2ee4c13433af0167678c0639e06a7fae9515b3dd
Author: Richard Ipsum <[email protected]>
AuthorDate: Sun Jun 9 18:39:33 2019 +0100
Commit: Michael Forney <[email protected]>
CommitDate: Thu Jun 13 13:07:20 2019 -0700
mkfifo: Set initial mode
From POSIX:
In the symbolic_mode strings, the op characters '+' and '-'
shall be interpreted relative to an assumed initial mode of
a=rw.
diff --git a/mkfifo.c b/mkfifo.c
index a09f4f5..390381b 100644
--- a/mkfifo.c
+++ b/mkfifo.c
@@ -14,7 +14,7 @@ usage(void)
int
main(int argc, char *argv[])
{
- mode_t mode = 0, mask;
+ mode_t mode = 0666, mask;
int mflag = 0, ret = 0;
ARGBEGIN {