提交 719f908e 编写于 作者: U Ulrich Hecht 提交者: Riku Voipio

wrap path for access syscall

Signed-off-by: NUlrich Hecht <uli@suse.de>
Signed-off-by: NRiku Voipio <riku.voipio@iki.fi>
上级 98818189
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册