Previously, LibOS expected addrlen for UNIX domain sockets to be exactly the same as the size of sockaddr_un struct. This is not true in the common case: addrlen may be less, see man unix.
Fixes #2609.
How to test this PR?
Added a test case in our existing unix.c LibOS regression test.
Description of the changes
Previously, LibOS expected
addrlen
for UNIX domain sockets to be exactly the same as the size ofsockaddr_un
struct. This is not true in the common case:addrlen
may be less, seeman unix
.Fixes #2609.
How to test this PR?
Added a test case in our existing
unix.c
LibOS regression test.This change is