From c491f667a1fdb3bd3de52970e21903fb5c6d1935 Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Tue, 7 Nov 2023 15:05:02 -0700 Subject: [PATCH] resolvectl: do not sort domain output The order of search domains is important information. We shouldn't obscure it by sorting the search domains when printing. Fixes: af781878d598 ("resolvectl: sort domain/nta output") (cherry picked from commit 7f0dbde467bbfb89be7c29c1f5f4bbdff0dabda1) (cherry picked from commit 6186c1e5c0b17d17aeb9eccb897a0966d36afc2e) --- src/resolve/resolvectl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/resolve/resolvectl.c b/src/resolve/resolvectl.c index e65fbbcbab3..b49f228052f 100644 --- a/src/resolve/resolvectl.c +++ b/src/resolve/resolvectl.c @@ -1407,8 +1407,6 @@ static int map_link_domains(sd_bus *bus, const char *member, sd_bus_message *m, if (r < 0) return r; - strv_sort(*l); - return 0; }