From: Lennart Poettering Date: Sun, 15 Aug 2010 00:21:17 +0000 (+0200) Subject: systemctl: sort case-insensitively X-Git-Tag: v8~78 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2a3a5b93cc4aabdbb1b89eed8899979bb6a2cca;p=systemd systemctl: sort case-insensitively --- diff --git a/src/systemctl.c b/src/systemctl.c index ca676f9d..a3186db4 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -216,11 +216,11 @@ static int compare_unit_info(const void *a, const void *b) { if (d1 && d2) { int r; - if ((r = strcmp(d1, d2)) != 0) + if ((r = strcasecmp(d1, d2)) != 0) return r; } - return strcmp(u->id, v->id); + return strcasecmp(u->id, v->id); } static int list_units(DBusConnection *bus, char **args, unsigned n) {