29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
|
From fe268c13396fd05318a88ac7987198f34c3931e3 Mon Sep 17 00:00:00 2001
|
||
|
From: Ulrich Hecht <uli@suse.de>
|
||
|
Date: Thu, 23 Jul 2009 17:55:41 +0200
|
||
|
Subject: [PATCH 30/33] linux-user: getpriority errno fix
|
||
|
|
||
|
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 b1ef3c9..30fb4ab 100644
|
||
|
--- a/linux-user/syscall.c
|
||
|
+++ b/linux-user/syscall.c
|
||
|
@@ -5327,7 +5327,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
|
||
|
|