Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sendmsg_unix's address encoding. #885

Merged
merged 1 commit into from Oct 19, 2023
Merged

Conversation

sunfishcode
Copy link
Member

When encoding the address for sendmsg_unix, use the unix field of SocketAddrUnix, since the unix field is the sockaddr_un that the OS will read.

Fixes #884.

When encoding the address for `sendmsg_unix`, use the `unix` field of
`SocketAddrUnix`, since the `unix` field is the `sockaddr_un` that the
OS will read.

Fixes #884.
sunfishcode added a commit that referenced this pull request Oct 19, 2023
When encoding the address for `sendmsg_unix`, use the `unix` field of
`SocketAddrUnix`, since the `unix` field is the `sockaddr_un` that the
OS will read.

Fixes #884.
sunfishcode added a commit that referenced this pull request Oct 19, 2023
When encoding the address for `sendmsg_unix`, use the `unix` field of
`SocketAddrUnix`, since the `unix` field is the `sockaddr_un` that the
OS will read.

Fixes #884.
@sunfishcode sunfishcode merged commit a59a191 into main Oct 19, 2023
42 of 43 checks passed
@sunfishcode sunfishcode deleted the sunfishcode/sendmsg-unix branch October 19, 2023 12:56
sunfishcode added a commit that referenced this pull request Oct 19, 2023
When encoding the address for `sendmsg_unix`, use the `unix` field of
`SocketAddrUnix`, since the `unix` field is the `sockaddr_un` that the
OS will read.

Fixes #884.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sendmsg fails with EINVAL when sending ScmRights over unconnected socket
1 participant