Skip to content

Commit

Permalink
Successful call to readlinkat(fd, "", ...) workaround
Browse files Browse the repository at this point in the history
readlink[at]() syscalls with a relative path are still to be supported properly.
  • Loading branch information
green-green-avk committed Apr 2, 2021
1 parent efc00b6 commit 08fadf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/path/path.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@ int detranslate_path(Tracee *tracee, char path[PATH_MAX], const char t_referrer[
return 0;

/* Is it a symlink? */
if (t_referrer != NULL) {
if (t_referrer != NULL &&
t_referrer[0] == '/') { // TODO: assert here & fix readlink[at]() syscalls
Comparison comparison;

sanity_check = false;
Expand Down

0 comments on commit 08fadf8

Please sign in to comment.