1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-03 01:17:45 +03:00

resolvectl: remove duplicate ':' from output

The second argument to dump_list() actually ends up in a TABLE_FIELD
cell now, where we implicitly append a ":". Hence drop it from the
strings.

Follow-up for: 37a50123fa

(cherry picked from commit ef503f1cec)
(cherry picked from commit c01cdcfb8a)
(cherry picked from commit 2ac8824885)
This commit is contained in:
Lennart Poettering 2023-01-05 17:34:18 +01:00 committed by Luca Boccassi
parent 582e5b764a
commit 486f3f52f4

View File

@ -1926,15 +1926,15 @@ static int status_global(sd_bus *bus, StatusMode mode, bool *empty_line) {
return table_log_add_error(r); return table_log_add_error(r);
} }
r = dump_list(table, "DNS Servers:", global_info.dns_ex ?: global_info.dns); r = dump_list(table, "DNS Servers", global_info.dns_ex ?: global_info.dns);
if (r < 0) if (r < 0)
return r; return r;
r = dump_list(table, "Fallback DNS Servers:", global_info.fallback_dns_ex ?: global_info.fallback_dns); r = dump_list(table, "Fallback DNS Servers", global_info.fallback_dns_ex ?: global_info.fallback_dns);
if (r < 0) if (r < 0)
return r; return r;
r = dump_list(table, "DNS Domain:", global_info.domains); r = dump_list(table, "DNS Domain", global_info.domains);
if (r < 0) if (r < 0)
return r; return r;