summaryrefslogtreecommitdiff
path: root/test/sys/test_pthread.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2022-11-19 13:39:31 -0700
committerAlan Somers <asomers@gmail.com>2022-11-19 13:54:07 -0700
commitfa62534a238c86334d41bc1da68267388cda9b36 (patch)
tree3c980dade1f6f61d48f27d2c0d4c68199e3fc3c8 /test/sys/test_pthread.rs
parentfbebb21dd8df447a1408795b4b5706d9ca6c55df (diff)
downloadnix-fa62534a238c86334d41bc1da68267388cda9b36.zip
Fix using SockaddrStorage to store Unix domain addresses on Linux
Since it has variable length, the user of a sockaddr_un must keep track of its true length. On the BSDs, this is handled by the builtin sun_len field. But on Linux-like operating systems it isn't. Fix this bug by explicitly tracking it for SockaddrStorage just like we already do for UnixAddr. Fixes #1866
Diffstat (limited to 'test/sys/test_pthread.rs')
0 files changed, 0 insertions, 0 deletions