From a2a3a5b93cc4aabdbb1b89eed8899979bb6a2cca Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 15 Aug 2010 02:21:17 +0200 Subject: [PATCH] systemctl: sort case-insensitively --- src/systemctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.5