Commit c02f499e109916f60e99ef568ac2508ab4c20d82
1 parent
3800af9e
Correct errno return for getsockopt(), by Thayne Harbaugh.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3838 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
2 deletions
linux-user/syscall.c
... | ... | @@ -996,14 +996,15 @@ static abi_long do_getsockopt(int sockfd, int level, int optname, |
996 | 996 | } |
997 | 997 | break; |
998 | 998 | default: |
999 | - goto unimplemented; | |
999 | + ret = -TARGET_ENOPROTOOPT; | |
1000 | + break; | |
1000 | 1001 | } |
1001 | 1002 | break; |
1002 | 1003 | default: |
1003 | 1004 | unimplemented: |
1004 | 1005 | gemu_log("getsockopt level=%d optname=%d not yet supported\n", |
1005 | 1006 | level, optname); |
1006 | - ret = -TARGET_ENOSYS; | |
1007 | + ret = -TARGET_EOPNOTSUPP; | |
1007 | 1008 | break; |
1008 | 1009 | } |
1009 | 1010 | return ret; | ... | ... |