resolve: always shows global settings
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 25 Mar 2018 09:57:19 +0000 (18:57 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 25 Mar 2018 09:57:19 +0000 (18:57 +0900)
src/resolve/resolve-tool.c

index 351f1ad..9208bf1 100644 (file)
@@ -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());