Skip to content

Commit

Permalink
Fix gcrypt tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
khuey committed Nov 1, 2024
1 parent 99d2898 commit 16c4835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/record_syscall.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6861,7 +6861,7 @@ static void rec_process_syscall_arch(RecordTask* t,
Registers r = t->regs();
if (r.syscall_failed()) {
uintptr_t path = syscallno == Arch::open ? r.orig_arg1() : r.arg2();
bool ok = false;
bool ok = true;
string pathname = t->read_c_str(remote_ptr<char>(path), &ok);
if (ok && is_gcrypt_deny_file(pathname.c_str())) {
fake_gcrypt_file(t, &r);
Expand Down

0 comments on commit 16c4835

Please sign in to comment.