Commit a7222580366605ec15f3ffd83ddb0e62451b353b

Authored by ths
1 parent 6e65a42a

Fix fcntl64 logic bug, by Kirill A. Shutemov.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2525 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 0 deletions
linux-user/syscall.c
... ... @@ -3882,12 +3882,16 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
3882 3882 switch(arg2){
3883 3883 case TARGET_F_GETLK64:
3884 3884 cmd = F_GETLK64;
  3885 + break;
3885 3886 case TARGET_F_SETLK64:
3886 3887 cmd = F_SETLK64;
  3888 + break;
3887 3889 case TARGET_F_SETLKW64:
3888 3890 cmd = F_SETLK64;
  3891 + break;
3889 3892 default:
3890 3893 cmd = arg2;
  3894 + break;
3891 3895 }
3892 3896  
3893 3897 switch(arg2) {
... ...