From 441514184ff60bce9689d186f778bafb132545c1 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Wed, 10 Jun 2026 16:53:21 +0100 Subject: [PATCH] systemctl: fix InvocationID property signature The InvocationID entry in status_map declared signature "s" but its bus_map_id128 callback reads an "ay" (the manager exports it as "ay"), matching the other bus_map_id128 callers. The mismatch was harmless while the declared signature was never checked, but becomes a dropped property once it is enforced. Declare "ay". Follow-up for f1d345ed76f5d4f46b67b7a2d3df2db1a9f51840 --- src/systemctl/systemctl-show.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemctl/systemctl-show.c b/src/systemctl/systemctl-show.c index 570aab7365..edef1d2575 100644 --- a/src/systemctl/systemctl-show.c +++ b/src/systemctl/systemctl-show.c @@ -2204,7 +2204,7 @@ static int show_one( { "ActiveExitTimestamp", "t", NULL, offsetof(UnitStatusInfo, active_exit_timestamp) }, { "InactiveEnterTimestamp", "t", NULL, offsetof(UnitStatusInfo, inactive_enter_timestamp) }, { "RuntimeMaxUSec", "t", NULL, offsetof(UnitStatusInfo, runtime_max_sec) }, - { "InvocationID", "s", bus_map_id128, offsetof(UnitStatusInfo, invocation_id) }, + { "InvocationID", "ay", bus_map_id128, offsetof(UnitStatusInfo, invocation_id) }, { "NeedDaemonReload", "b", NULL, offsetof(UnitStatusInfo, need_daemon_reload) }, { "Transient", "b", NULL, offsetof(UnitStatusInfo, transient) }, { "ExecMainPID", "u", NULL, offsetof(UnitStatusInfo, main_pid) },