Skip to content

Commit

Permalink
bug fix: cached right path
Browse files Browse the repository at this point in the history
  • Loading branch information
MihirLuthra committed Aug 20, 2019
1 parent f628836 commit f1dd2e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/darwintracelib1.0/darwintrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,8 @@ static inline bool __darwintrace_sandbox_check(const char *path, int flags) {

case FILEMAP_ASK:

path_to_be_cached = path;

// ask the socket whether this file is OK
switch (dependency_check(path)) {
case 1:
Expand Down Expand Up @@ -840,7 +842,7 @@ static inline bool __darwintrace_sandbox_check(const char *path, int flags) {

case FILEMAP_DENY:

path_to_be_cached = path;
path_to_be_cached = t;
cached_path_attributes = DENY_PATH | IS_PREFIX;

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

0 comments on commit f1dd2e9

Please sign in to comment.