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:
parent
90c3f79dc7
commit
50933da01b
@ -1582,7 +1582,7 @@ static int compare_machine_info(const void *a, const void *b) {
|
|||||||
const struct machine_info *u = a, *v = b;
|
const struct machine_info *u = a, *v = b;
|
||||||
|
|
||||||
if (u->is_host != v->is_host)
|
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);
|
return strcasecmp(u->name, v->name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user