Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 7c4d134

Browse files
author
Sarah Jelinek
authored
Merge pull request #36 from marcinslusarz/getcwd-dec
Fix decoding of getcwd syscall.
2 parents a60a97c + 39e8761 commit 7c4d134

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/intercept_util.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,8 @@ intercept_log_syscall(const char *libpath, long nr, long arg0, long arg1,
746746
result_known, result);
747747
} else if (nr == SYS_getcwd) {
748748
buf = print_syscall(buf, "getcwd", 2,
749-
F_STR, arg0,
749+
F_STR, result_known == KNOWN ? arg0 :
750+
(intptr_t)"???",
750751
F_DEC, arg1,
751752
result_known, result);
752753
} else if (nr == SYS_chdir) {

0 commit comments

Comments
 (0)