Skip to content

Commit 28e6a48

Browse files
committed
don't print log msg if fence not set
1 parent 06b1181 commit 28e6a48

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/darwintracelib1.0/darwintrace.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,13 +608,15 @@ bool __darwintrace_is_in_sandbox(const char *path, int flags) {
608608
if (__env_tracesandbox_tree_root != NULL) {
609609
trace_sandbox = ( shm_offt )strtoumax(__env_tracesandbox_tree_root, NULL, 10);
610610
} else {
611-
DT_PRINT("__env_tracesandbox_tree_root NULL %s", path);
611+
/* Happens when path is /AppleInternal */
612612
return true;
613613
}
614614
}
615615

616+
/*
617+
* Fence isn't set, no need to do checking, just return true
618+
*/
616619
if (trace_sandbox_is_fence_set(trace_sandbox) == false) {
617-
DT_PRINT("FENCE NOT SET %s", path);
618620
return true;
619621
}
620622

0 commit comments

Comments
 (0)