[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/4] wrap path for access syscall
From: |
Ulrich Hecht |
Subject: |
[Qemu-devel] [PATCH 3/4] wrap path for access syscall |
Date: |
Fri, 3 Jul 2009 17:09:29 +0200 |
Signed-off-by: Ulrich Hecht <address@hidden>
---
linux-user/syscall.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index e541b0d..498ce49 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -4529,7 +4529,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)
--
1.6.2.1