From 719f908e3adaba68054dd072cfa969e5d94ac1d0 Mon Sep 17 00:00:00 2001 From: Ulrich Hecht Date: Fri, 3 Jul 2009 17:09:29 +0200 Subject: [PATCH] wrap path for access syscall Signed-off-by: Ulrich Hecht Signed-off-by: Riku Voipio --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)