Commit 719f908e3adaba68054dd072cfa969e5d94ac1d0

Authored by Ulrich Hecht
Committed by Riku Voipio
1 parent 98818189

wrap path for access syscall

Signed-off-by: Ulrich Hecht <uli@suse.de>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Showing 1 changed file with 1 additions and 1 deletions
linux-user/syscall.c
... ... @@ -4555,7 +4555,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
4555 4555 case TARGET_NR_access:
4556 4556 if (!(p = lock_user_string(arg1)))
4557 4557 goto efault;
4558   - ret = get_errno(access(p, arg2));
  4558 + ret = get_errno(access(path(p), arg2));
4559 4559 unlock_user(p, arg1, 0);
4560 4560 break;
4561 4561 #if defined(TARGET_NR_faccessat) && defined(__NR_faccessat)
... ...