git: 9cc67e43610e - main - ktrace tests: Add a missing mode in open(O_CREAT)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 28 Jul 2024 15:34:12 UTC
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. */