]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus/bus-socket: reinstate MSG_TRUNC handling in bus_socket_read_message()
authorMike Yuan <me@yhndnzj.com>
Wed, 28 Jan 2026 02:01:06 +0000 (03:01 +0100)
committerMike Yuan <me@yhndnzj.com>
Wed, 28 Jan 2026 02:34:25 +0000 (03:34 +0100)
commitf452c324e71db04bbc754d9ae7f710ec168c8b44
tree834dd3d30031b09b05df4a012012e1bfde8a2510
parent43e08aea6e194b15195220288a8204aff9263fe2
sd-bus/bus-socket: reinstate MSG_TRUNC handling in bus_socket_read_message()

We switched away from recvmsg_safe() in order to gracefully
handle MSG_CTRUNC. But MSG_TRUNC really shouldn't happen.

While at it, do not use RET_NERRNO with ssize_t.
src/libsystemd/sd-bus/bus-socket.c