From 1dbccd6d342d9f8dd8d4a1617e0081b61a553ca8 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 30 Jun 2023 16:06:54 +0200 Subject: [PATCH] dbus-cgroup: Make sure we overwrite cpuset properties in drop-in The DBUS property setter overwrites the value of the property but writes a drop-in that extends the value. Let's make sure the drop-in overwrites the property value as well by assigning the empty string first. --- src/core/dbus-cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c index 59d7a3ba71f..9ab806b22d7 100644 --- a/src/core/dbus-cgroup.c +++ b/src/core/dbus-cgroup.c @@ -1336,7 +1336,7 @@ int bus_cgroup_set_property( new_set = (CPUSet) {}; unit_invalidate_cgroup(u, CGROUP_MASK_CPUSET); - unit_write_settingf(u, flags, name, "%s=%s", name, setstr); + unit_write_settingf(u, flags, name, "%s=\n%s=%s", name, name, setstr); } return 1; -- 2.47.3