]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkctl: sort alternative names
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 Jul 2020 04:42:49 +0000 (13:42 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 Jul 2020 06:24:40 +0000 (15:24 +0900)
src/network/networkctl.c

index a80a6185dabb1c96eebe332d9c16f9143ff7d46c..1427508dcdfd27cab6c85a7a62a057646832d0dd 100644 (file)
@@ -1486,6 +1486,7 @@ static int link_status_one(
         if (r < 0)
                 return table_log_add_error(r);
 
+        strv_sort(info->alternative_names);
         r = dump_list(table, "Alternative Names:", info->alternative_names);
         if (r < 0)
                 return r;