diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-10-25 10:08:27 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-10-25 10:08:27 +0000 |
commit | dc6127af868faf1882f02fb1e60496c23bcdbe57 (patch) | |
tree | e960b628021dd38f4bfd9386680c7f2733648940 /regress | |
parent | 2933e3ab438322bf4514d58834747672f3d4d3fb (diff) |
open() flags never contain O_CREAT, so variatic mode_t can be removed here also
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sys/fifofs/fifotest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sys/fifofs/fifotest.c b/regress/sys/fifofs/fifotest.c index 100bf69e472..fc08106d073 100644 --- a/regress/sys/fifofs/fifotest.c +++ b/regress/sys/fifofs/fifotest.c @@ -94,7 +94,7 @@ runtest(char *fifo, int flags, int timeout) /* Note: O_RDWR not required by POSIX */ alarm(2); - if ((fd = open(fifo, O_RDWR | flags, 0644)) == -1) { + if ((fd = open(fifo, O_RDWR | flags)) == -1) { printf("open %s: %s\n", fifo, strerror(errno)); exit(1); } @@ -168,7 +168,7 @@ eof_writer(const char *fifo, int flags) /* connect to FIFO. */ alarm(2); - fd = open(fifo, O_WRONLY | flags, 0644); + fd = open(fifo, O_WRONLY | flags); alarm(0); if (fd == -1) { printf("open %s O_WRONLY: %s\n", fifo, strerror(errno)); |