Skip to contentSkip to conversation

setsockopt() errno

PATCH New Thayne Harbaugh 1 participant 1 message Dec 13, 2007

lore
Share & tools
lore
#0 lore raw

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
Index: qemu/linux-user/syscall.c
===================================================================
@@ -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;
 }