mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
ktrace tests: Add a missing mode in open(O_CREAT)
MFC after: 1 week (cherry picked from commit 9cc67e43610e34a692398a65adcc5e8846e84250)
This commit is contained in:
parent
067adbb4be
commit
014b6c341d
1 changed files with 1 additions and 1 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue