1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03:00

sd-bus: sort enumerated child objects

Fixes #8008.
This commit is contained in:
Yu Watanabe 2025-02-25 14:57:39 +09:00
parent b7908e1cb7
commit 31cdcca8dc

View File

@ -127,6 +127,8 @@ static int add_enumerated_to_set(
if (sd_bus_error_is_set(error))
return -sd_bus_error_get_errno(error);
strv_sort(children);
STRV_FOREACH(k, children) {
if (r < 0) {
free(*k);