Skip to content

Commit f1dd2e9

Browse files
committed
bug fix: cached right path
1 parent f628836 commit f1dd2e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/darwintracelib1.0/darwintrace.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,8 @@ static inline bool __darwintrace_sandbox_check(const char *path, int flags) {
789789

790790
case FILEMAP_ASK:
791791

792+
path_to_be_cached = path;
793+
792794
// ask the socket whether this file is OK
793795
switch (dependency_check(path)) {
794796
case 1:
@@ -840,7 +842,7 @@ static inline bool __darwintrace_sandbox_check(const char *path, int flags) {
840842

841843
case FILEMAP_DENY:
842844

843-
path_to_be_cached = path;
845+
path_to_be_cached = t;
844846
cached_path_attributes = DENY_PATH | IS_PREFIX;
845847

846848
// If DT_REPORT wasn't specified, logging won't be done

0 commit comments

Comments
 (0)