1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 02:21:44 +03:00

systemctl: sort local host entry before container in list-machines output

This commit is contained in:
Lennart Poettering 2014-03-18 03:53:02 +01:00
parent 90c3f79dc7
commit 50933da01b

View File

@ -1582,7 +1582,7 @@ static int compare_machine_info(const void *a, const void *b) {
const struct machine_info *u = a, *v = b;
if (u->is_host != v->is_host)
return u->is_host > v->is_host ? 1 : -1;
return u->is_host > v->is_host ? -1 : 1;
return strcasecmp(u->name, v->name);
}