aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorUlrich Hecht <uli@suse.de>2009-07-03 17:09:30 +0200
committerRiku Voipio <riku.voipio@iki.fi>2009-07-08 17:02:28 +0300
commit666bcd913b1f3e4be8f92995c217498e05379493 (patch)
tree0199c425b9739a0482c497c7bb9d9dd68e159c45 /linux-user
parent719f908e3adaba68054dd072cfa969e5d94ac1d0 (diff)
getrlimit conversion mix-up
Fixes getrlimit implementation that overwrote the result of the syscall instead of converting it Signed-off-by: Ulrich Hecht <uli@suse.de> Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/syscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index df3016f9af..000962328e 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -5047,8 +5047,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
if (!is_error(ret)) {
if (!lock_user_struct(VERIFY_WRITE, target_rlim, arg2, 0))
goto efault;
- rlim.rlim_cur = tswapl(target_rlim->rlim_cur);
- rlim.rlim_max = tswapl(target_rlim->rlim_max);
+ target_rlim->rlim_cur = tswapl(rlim.rlim_cur);
+ target_rlim->rlim_max = tswapl(rlim.rlim_max);
unlock_user_struct(target_rlim, arg2, 1);
}
}