mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-19 02:28:04 +07:00
systemctl: sort case-insensitively
This commit is contained in:
parent
9be9828c00
commit
a2a3a5b93c
@ -216,11 +216,11 @@ static int compare_unit_info(const void *a, const void *b) {
|
|||||||
if (d1 && d2) {
|
if (d1 && d2) {
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
if ((r = strcmp(d1, d2)) != 0)
|
if ((r = strcasecmp(d1, d2)) != 0)
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
return strcmp(u->id, v->id);
|
return strcasecmp(u->id, v->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int list_units(DBusConnection *bus, char **args, unsigned n) {
|
static int list_units(DBusConnection *bus, char **args, unsigned n) {
|
||||||
|
Loading…
Reference in New Issue
Block a user