tree-wide: be more careful when passing literal integers to "t" bus message fields
commit72b9369293db5bd63a4076a8fd87d7e7ea04b2dd
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Feb 2024 10:03:35 +0000 (21 11:03 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 28 Feb 2024 00:15:39 +0000 (28 00:15 +0000)
tree9832257c596004e8d94f848f50b8555073979eb5
parente6db5ac9b1ae2b8721eff27405f7d3e8c05c4642
tree-wide: be more careful when passing literal integers to "t" bus message fields

Since we use varargs for sd_message_append() we need to make sure the
parameters we pass are actually 64bit wide, if "t" is used. Hence cast
appropriately if necessary.

I went through the whole tree, and in most cases we got it right, but
there are some cases we missed so far.

Inspired by: #31420

(cherry picked from commit 04a3af3c6d434bcde7118440f13d55c910eb9ba0)
(cherry picked from commit c0f501c49a3724774f979591fbde9d842997ae89)
src/core/dbus-execute.c
src/core/dbus-service.c
src/machine/machinectl.c
src/portable/portablectl.c
src/shared/bus-unit-util.c