[PATCH] Unix datagram socket messaging

Jeremy Allison jra at samba.org
Wed Apr 16 10:42:58 MDT 2014

On Wed, Apr 16, 2014 at 01:58:29PM +0200, Volker Lendecke wrote:
> So it is undefined behaviour to create a union of struct
> sockaddr_un and struct sockaddr, store into one member and
> read from another one. We're not the first ones trying to
> solve this unspecified behaviour, I'm probably just not able
> to correctly read the C standard.
> Is anybody out there who knows how to correctly bind a unix
> domain datagram socket without using undefined C behaviour?
> Or is it just not possible to do in C?

Let's just do it the way we already do it, and
have done with that :-).

I'm still reviewing, planning to push once
I'm done (if I don't seen any other issues :-).



More information about the samba-technical mailing list