[Mono-dev] [Fwd: UnixEndPoint]

Paolo Molaro lupus at ximian.com
Thu Mar 9 09:24:03 EST 2006


On 03/09/06 Philipp Baer wrote:
> it's me again. I came across another issue with UnixEndPoint:
> - the unix socket pathname in the sockaddr structure has to
>   be zero-terminated. I've modified the serialization method
>   so that a trailing zero is appended.
> - the pathname returned by a recvfrom call contains a trailing
>   zero which is preserved by the .NET string. This leads to
>   a different string and thus a different hash.

Maybe it's better to fix this issue at the source instead of working
around it? If the returned string has a zero byte and the filename
doesn't, that is a bug.
Do you mind looking at fixing this?
Otherwise it would be nice if you file a bug in bugzilla with a test
case to reproduce, too.
Thanks (and sorry for the late reply)!

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list