Search
j0ke.net Open Build Service
>
Projects
>
J0KE.NET
:
infrastructure
>
qemu-svn
> qemu-0.11-git-user-linux-getpriority.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File qemu-0.11-git-user-linux-getpriority.patch of Package qemu-svn (Revision 17)
Currently displaying revision
17
,
show latest
getpriority returned wrong errno; fixes LTP test getpriority02. Signed-off-by: Ulrich Hecht <uli@suse.de> --- 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 6892880..6417cbb 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5298,7 +5298,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, /* libc does special remapping of the return value of * sys_getpriority() so it's just easiest to call * sys_getpriority() directly rather than through libc. */ - ret = sys_getpriority(arg1, arg2); + ret = get_errno(sys_getpriority(arg1, arg2)); break; case TARGET_NR_setpriority: ret = get_errno(setpriority(arg1, arg2, arg3)); -- 1.6.2.1