1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00

manager: always sort environment block, it's prettier

This commit is contained in:
Lennart Poettering 2013-11-21 19:31:46 +01:00
parent 51b4ea6f48
commit 9d5a3757c3

View File

@ -397,6 +397,8 @@ static int manager_default_environment(Manager *m) {
if (!m->environment)
return -ENOMEM;
strv_sort(m->environment);
return 0;
}
@ -2507,7 +2509,7 @@ int manager_environment_add(Manager *m, char **minus, char **plus) {
if (b != l)
strv_free(b);
m->environment = l;
m->environment = strv_sort(l);
return 0;
}