setsockopt() errno
PATCH 1/1 setsockopt() errno
linux-user setsockopt() doesn't return the correct errno for certain cases. This fixes errno for unsupported levels. It's similar to the bug in getsockopt().
linux-user/syscall.c +1 -1
@@ -920,7 +920,7 @@default : unimplemented:gemu_log ("Unsupported setsockopt level=%d optname=%d \n" , level, optname); - ret = -TARGET_ENOSYS ; + ret = -TARGET_ENOPROTOOPT ; }return ret; }