diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-03-04 13:51:37 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-03-04 13:51:37 -0600 |
commit | b85a33c31d1621c8ae5dfa50e588c13b2f2485d7 (patch) | |
tree | 5eb15c89f788392a8e5f3ca60855d476ca3a0f2c /user/kio/D11011-msghdr-iovec-struct.patch | |
parent | 4884257ef3686f069836eda5a0093f3388b7de7f (diff) | |
download | packages-b85a33c31d1621c8ae5dfa50e588c13b2f2485d7.tar.gz packages-b85a33c31d1621c8ae5dfa50e588c13b2f2485d7.tar.bz2 packages-b85a33c31d1621c8ae5dfa50e588c13b2f2485d7.tar.xz packages-b85a33c31d1621c8ae5dfa50e588c13b2f2485d7.zip |
user/[KF5]: bump to 5.43.0
Diffstat (limited to 'user/kio/D11011-msghdr-iovec-struct.patch')
-rw-r--r-- | user/kio/D11011-msghdr-iovec-struct.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/user/kio/D11011-msghdr-iovec-struct.patch b/user/kio/D11011-msghdr-iovec-struct.patch new file mode 100644 index 000000000..641bb8629 --- /dev/null +++ b/user/kio/D11011-msghdr-iovec-struct.patch @@ -0,0 +1,23 @@ +diff --git a/src/ioslaves/file/sharefd_p.h b/src/ioslaves/file/sharefd_p.h +--- a/src/ioslaves/file/sharefd_p.h ++++ b/src/ioslaves/file/sharefd_p.h +@@ -74,9 +74,16 @@ + FDMessageHeader() + : io_buf{0} + , cmsg_buf{0} +- , io{io_buf, sizeof io_buf} +- , msg{nullptr, 0, &io, 1, &cmsg_buf, sizeof cmsg_buf, 0} + { ++ memset(&io, 0, sizeof io); ++ io.iov_base = io_buf; ++ io.iov_len = sizeof io_buf; ++ ++ memset(&msg, 0, sizeof msg); ++ msg.msg_iov = &io; ++ msg.msg_iovlen = 1; ++ msg.msg_control = &cmsg_buf; ++ msg.msg_controllen = sizeof cmsg_buf; + } + + msghdr *message() + |