diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-03-22 15:08:55 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-03-22 15:08:55 +0000 |
commit | a7222580366605ec15f3ffd83ddb0e62451b353b (patch) | |
tree | 6a88f8ab2186f682b2fa5d7207c75daa3881963c /linux-user | |
parent | 6e65a42ad383480b9765d02816c8ab486867073b (diff) |
Fix fcntl64 logic bug, by Kirill A. Shutemov.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2525 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/syscall.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 5ff364d16c..f79b5e0c79 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -3882,12 +3882,16 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3, switch(arg2){ case TARGET_F_GETLK64: cmd = F_GETLK64; + break; case TARGET_F_SETLK64: cmd = F_SETLK64; + break; case TARGET_F_SETLKW64: cmd = F_SETLK64; + break; default: cmd = arg2; + break; } switch(arg2) { |