]> err.no Git - systemd/commitdiff
systemctl: sort case-insensitively
authorLennart Poettering <lennart@poettering.net>
Sun, 15 Aug 2010 00:21:17 +0000 (02:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 16 Aug 2010 18:07:01 +0000 (20:07 +0200)
src/systemctl.c

index ca676f9da3437c2493de38e21282f8e3f6f31279..a3186db4a060017f170f126991308443b664147b 100644 (file)
@@ -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) {