From a9d84551470b6bee0b68117aa0e7d61c50caf2d9 Mon Sep 17 00:00:00 2001 From: "Franklin \"Snaipe\" Mathieu" Date: Fri, 27 Oct 2023 16:03:13 +0200 Subject: [PATCH] cgroup,systemd: fix typo in dbus payload structure 343c4f1 ("cgroups,systemd: garbage-collect failed invocations") introduced an error in the dbus message by forgetting to add an additional key-value pair to the property list. This commit fixes this error. --- cgroup_systemd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgroup_systemd.c b/cgroup_systemd.c index d080d73..6446c06 100644 --- a/cgroup_systemd.c +++ b/cgroup_systemd.c @@ -223,7 +223,7 @@ static int cgroup_systemd_join_cgroup(const char *parent, const char *name) /* Set properties */ ok = ok && dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "(sv)", &props); - ok = ok && bus_message_append(&props, "(sv)(sv)(sv)(sv)", + ok = ok && bus_message_append(&props, "(sv)(sv)(sv)(sv)(sv)", "Description", "s", "bst", "Delegate", "b", 1, /* Delegate all cgroup controllers to us */ "CollectMode", "s", "inactive-or-failed", /* Make sure failed invocations are garbage-collected */