Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jul 2024 15:34:12 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: 9cc67e43610e - main - ktrace tests: Add a missing mode in open(O_CREAT)
Message-ID:  <202407281534.46SFYCOR059070@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=9cc67e43610e34a692398a65adcc5e8846e84250

commit 9cc67e43610e34a692398a65adcc5e8846e84250
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-07-28 15:31:40 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-07-28 15:31:40 +0000

    ktrace tests: Add a missing mode in open(O_CREAT)
    
    MFC after:      1 week
---
 tests/sys/kern/ktrace_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/sys/kern/ktrace_test.c b/tests/sys/kern/ktrace_test.c
index 21868441c687..9d4c2dbdcd74 100644
--- a/tests/sys/kern/ktrace_test.c
+++ b/tests/sys/kern/ktrace_test.c
@@ -116,7 +116,7 @@ cap_trace_child(int cpid, struct ktr_cap_fail *v, int numv)
 	int error, fd, i;
 
 	ATF_REQUIRE((fd = open("ktrace.out",
-	    O_RDONLY | O_CREAT | O_TRUNC)) != -1);
+	    O_RDONLY | O_CREAT | O_TRUNC, 0600)) != -1);
 	ATF_REQUIRE(ktrace("ktrace.out", KTROP_SET,
 	    KTRFAC_CAPFAIL, cpid) != -1);
 	/* Notify child that we've starting tracing. */



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