CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/07/30 03:35:55
Modified files:
usr.sbin/relayctl: relayctl.c
Log message:
relayctl: switch to imsg_get_* API
Use imsg_get_data() with size validation instead of casting imsg->data
directly and imsg_get_type/len/id/pid() instead of imsg->hdr.* acc
Structs like rdr/table/host.... carry embedded string buffers like name, label.
When such a struct crosses a privilege boundary the receiver cannot Structs
that the string is actually NUL terminated, so force a '\0' in the last byte
after imsg_get_data(). Not strictly required here because relayd is the sender,
but a good habit for imsg consumers.
embedded string buffer hint by claudio@, OK claudio@