mirror of https://gitee.com/openkylin/qemu.git
wrap path for access syscall
Signed-off-by: Ulrich Hecht <uli@suse.de> Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
This commit is contained in:
parent
98818189ea
commit
719f908e3a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue