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:
parent
51b4ea6f48
commit
9d5a3757c3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user