Skip to content

Commit

Permalink
Fix decoding of getcwd syscall.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinslusarz committed Jul 20, 2017
1 parent 0c6d03d commit 39e8761
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/intercept_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,8 @@ intercept_log_syscall(const char *libpath, long nr, long arg0, long arg1,
result_known, result);
} else if (nr == SYS_getcwd) {
buf = print_syscall(buf, "getcwd", 2,
F_STR, arg0,
F_STR, result_known == KNOWN ? arg0 :
(intptr_t)"???",
F_DEC, arg1,
result_known, result);
} else if (nr == SYS_chdir) {
Expand Down

0 comments on commit 39e8761

Please sign in to comment.