From 17ec856cd75d0caac442a369d9c65b8c29cb08fd Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 25 Oct 2021 10:08:26 +0000 Subject: [PATCH] open() flags never contain O_CREAT, so variatic mode_t can be removed here also --- regress/sys/fifofs/fifotest.c | 4 ++-- 1 file 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)); -- 2.20.1