1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +03:00

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.
This commit is contained in:
Daan De Meyer 2023-06-30 16:06:54 +02:00 committed by Lennart Poettering
parent 95dafd30da
commit 1dbccd6d34

View File

@ -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;