git: 014b6c341d9c - stable/14 - ktrace tests: Add a missing mode in open(O_CREAT)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 06 Aug 2024 16:41:00 UTC
The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=014b6c341d9cfec30ec28cea9f304abbc156e625 commit 014b6c341d9cfec30ec28cea9f304abbc156e625 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2024-07-28 15:31:40 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2024-08-06 16:40:51 +0000 ktrace tests: Add a missing mode in open(O_CREAT) MFC after: 1 week (cherry picked from commit 9cc67e43610e34a692398a65adcc5e8846e84250) --- 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. */