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.
This commit is contained in:
Richard Ipsum 2019-06-09 18:39:33 +01:00 committed by Michael Forney
parent eeedfd87e5
commit 2ee4c13433

View File

@ -14,7 +14,7 @@ usage(void)
int int
main(int argc, char *argv[]) main(int argc, char *argv[])
{ {
mode_t mode = 0, mask; mode_t mode = 0666, mask;
int mflag = 0, ret = 0; int mflag = 0, ret = 0;
ARGBEGIN { ARGBEGIN {