Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Sep 2021 17:04:02 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3a0976dea380 - main - lio_test: Specify a mode with O_CREAT
Message-ID:  <202109111704.18BH42aT096245@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=3a0976dea38004fe497ff4f69ad329a6faa5bf93

commit 3a0976dea38004fe497ff4f69ad329a6faa5bf93
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2021-09-11 16:56:07 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2021-09-11 16:59:10 +0000

    lio_test: Specify a mode with O_CREAT
    
    Sponsored by:   The FreeBSD Foundation
---
 tests/sys/aio/lio_test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/sys/aio/lio_test.c b/tests/sys/aio/lio_test.c
index 720fcc1fa94f..82d0384f6f76 100644
--- a/tests/sys/aio/lio_test.c
+++ b/tests/sys/aio/lio_test.c
@@ -223,7 +223,7 @@ ATF_TC_BODY(lio_listio_opcodes, tc)
 	char buffer[6];
 	int fd;
 
-	fd = open("testfile", O_CREAT | O_RDWR);
+	fd = open("testfile", O_CREAT | O_RDWR, 0666);
 	ATF_REQUIRE_MSG(fd >= 0, "open: %s", strerror(errno));
 
 	/* We start with numbers in a file and letters in memory... */
@@ -302,7 +302,7 @@ ATF_TC_BODY(lio_listio_invalid_opcode, tc)
 	struct aiocb *list[] = {&sync_cb, &mlock_cb};
 	int fd;
 
-	fd = open("testfile", O_CREAT | O_RDWR);
+	fd = open("testfile", O_CREAT | O_RDWR, 0666);
 	ATF_REQUIRE_MSG(fd >= 0, "open: %s", strerror(errno));
 
 	bzero(&sync_cb, sizeof(sync_cb));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109111704.18BH42aT096245>