Descriptionsyscall: handle getsockname for unix sockets on openbsd 5.2
On OpenBSD 5.2, calling getsockname on an unbound Unix domain socket
results in a successful syscall, however the AF is unset and the length
is returned as zero. This has been changed to more portable behaviour,
which will be included in the OpenBSD 5.3 release.
For now, work around this by treating a successful getsockname() call
that returns a family of AF_UNSPEC and length of zero as a AF_UNIX
socket.
Makes TestPassFD work on OpenBSD 5.2.
Fixes issue 4956.
Patch Set 1 #Patch Set 2 : diff -r e87718bbdf73 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r e87718bbdf73 https://go.googlecode.com/hg/ #
Total comments: 1
Patch Set 4 : diff -r db1736b03009 https://go.googlecode.com/hg/ #Patch Set 5 : diff -r db1736b03009 https://go.googlecode.com/hg/ #MessagesTotal messages: 8
|