Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix arguments for renameat #20

Merged
merged 1 commit into from Apr 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix arguments for renameat
  • Loading branch information
Mikael Urankar committed Apr 22, 2016
commit aa90a1b960f96738ae80778ac13b95508b83842a
4 changes: 2 additions & 2 deletions bsd-user/bsd-file.h
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ static inline abi_long do_bsd_renameat(abi_long arg1, abi_long arg2,
abi_long ret;
void *p1, *p2;

LOCK_PATH(p1, arg1);
LOCK_PATH(p2, arg2);
LOCK_PATH(p1, arg2);
LOCK_PATH(p2, arg4);
if (!p1 || !p2) {
ret = -TARGET_EFAULT;
} else {
Expand Down