aboutsummaryrefslogtreecommitdiff
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorUlrich Hecht <uli@suse.de>2009-07-03 17:09:29 +0200
committerRiku Voipio <riku.voipio@iki.fi>2009-07-08 17:02:28 +0300
commit719f908e3adaba68054dd072cfa969e5d94ac1d0 (patch)
tree04c1e88e95097d774319072175dcb1bf709892d4 /linux-user/syscall.c
parent98818189ea9a8e7abd4d8699289da6b14d8190ee (diff)
wrap path for access syscall
Signed-off-by: Ulrich Hecht <uli@suse.de> Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 40ccb10acc..df3016f9af 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -4555,7 +4555,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
case TARGET_NR_access:
if (!(p = lock_user_string(arg1)))
goto efault;
- ret = get_errno(access(p, arg2));
+ ret = get_errno(access(path(p), arg2));
unlock_user(p, arg1, 0);
break;
#if defined(TARGET_NR_faccessat) && defined(__NR_faccessat)