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

This commit is contained in:
Lennart Poettering
2014-03-18 04:46:55 +01:00
parent 90c3f79dc7
commit 50933da01b
+1 -1
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);
}