Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrtonm committed Mar 6, 2024
1 parent 0f8edfc commit ac52ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/tracer/forbid_paths.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static int allow_path(const char *path, const int ruleset_fd, bool shallow) {
struct stat statbuf;

path_beneath.parent_fd = open(path, O_PATH | O_CLOEXEC);
if (path_beneath.parent_fd < 0) {
if (path_beneath.parent_fd < 0 && errno != ENOENT) {
fprintf(stderr, "Failed to open \"%s\": %s\n", path, strerror(errno));
return -1;
}
Expand Down

0 comments on commit ac52ae4

Please sign in to comment.