Class FDMessageHeader assumes the layout of msghdr and iovec structure in its constructor. This assumption is wrong
because as per POSIX standards both may contain more members than usual. This patch fixes the issue.
BUG: 391367
Class FDMessageHeader assumes the layout of msghdr and iovec structure in its constructor. This assumption is wrong
because as per POSIX standards both may contain more members than usual. This patch fixes the issue.
BUG: 391367
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
src/ioslaves/file/sharefd_p.h | ||
---|---|---|
85 | Looks good, it's just a bit inconsistent that iov_base points to io_buf (without &) and msg_control points to &cmsg_buf (with &), both members being char [N]. It turns out that both work, but why not use the same syntax both times? |
Thanks, this is good to go in. In fact I'll put it in 5.44 since it fixes a compilation error, once you push it to master (please do today).