Skip to content

Commit

Permalink
i#1569 AArch64: Add missing "flags" argument in call to SYS_unlinkat.
Browse files Browse the repository at this point in the history
This old bug explains why 97abbd4 broke client.drx-test on AArch64.

Review-URL: https://codereview.appspot.com/309590043
  • Loading branch information
egrimley-arm committed Sep 29, 2016
1 parent 4a2e614 commit ec600f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/unix/os.c
Original file line number Diff line number Diff line change
Expand Up @@ -4004,7 +4004,7 @@ os_delete_file(const char *name)
#ifdef SYS_unlink
return (dynamorio_syscall(SYS_unlink, 1, name) == 0);
#else
return (dynamorio_syscall(SYS_unlinkat, 2, AT_FDCWD, name) == 0);
return (dynamorio_syscall(SYS_unlinkat, 3, AT_FDCWD, name, 0) == 0);
#endif
}

Expand Down

0 comments on commit ec600f3

Please sign in to comment.