* [Qemu-devel] [BUG][PATCH] setsockopt() errno
@ 2007-12-13 5:31 Thayne Harbaugh
0 siblings, 0 replies; only message in thread
From: Thayne Harbaugh @ 2007-12-13 5:31 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 160 bytes --]
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().
[-- Attachment #2: 10_setsockopt_errnos.patch --]
[-- Type: text/x-patch, Size: 470 bytes --]
Index: qemu/linux-user/syscall.c
===================================================================
--- qemu.orig/linux-user/syscall.c 2007-12-12 22:26:51.000000000 -0700
+++ qemu/linux-user/syscall.c 2007-12-12 22:27:41.000000000 -0700
@@ -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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-13 5:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-13 5:31 [Qemu-devel] [BUG][PATCH] setsockopt() errno Thayne Harbaugh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).