From 2892077c937f85a019fcb3bdbcd4433f2e373274 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 20 Mar 2018 18:11:39 +0900 Subject: [PATCH 1/2] resolve: actually shows information about all specified interfaces --- src/resolve/resolve-tool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/resolve/resolve-tool.c b/src/resolve/resolve-tool.c index 462ea7a2d5f..351f1addf10 100644 --- a/src/resolve/resolve-tool.c +++ b/src/resolve/resolve-tool.c @@ -2421,11 +2421,11 @@ int main(int argc, char **argv) { STRV_FOREACH(ifname, argv + optind) { int ifindex, q; - q = parse_ifindex(argv[optind], &ifindex); + q = parse_ifindex(*ifname, &ifindex); if (q < 0) { - ifindex = if_nametoindex(argv[optind]); + ifindex = if_nametoindex(*ifname); if (ifindex <= 0) { - log_error_errno(errno, "Failed to resolve interface name: %s", argv[optind]); + log_error_errno(errno, "Failed to resolve interface name '%s': %m", *ifname); continue; } } From 79b20ad8e28ded8b16489691a8587f2450d93eb5 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 25 Mar 2018 18:57:19 +0900 Subject: [PATCH 2/2] resolve: always shows global settings --- src/resolve/resolve-tool.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/resolve/resolve-tool.c b/src/resolve/resolve-tool.c index 351f1addf10..9208bf1167c 100644 --- a/src/resolve/resolve-tool.c +++ b/src/resolve/resolve-tool.c @@ -1454,11 +1454,6 @@ static int status_global(sd_bus *bus, bool *empty_line) { goto finish; } - if (strv_isempty(global_info.dns) && strv_isempty(global_info.domains) && strv_isempty(global_info.ntas)) { - r = 0; - goto finish; - } - (void) pager_open(arg_no_pager, false); printf("%sGlobal%s\n", ansi_highlight(), ansi_normal());