From: Wouter Wijngaards Date: Mon, 26 Nov 2018 13:55:36 +0000 (+0000) Subject: - Fix that unbound-control can send file for view_local_datas. X-Git-Tag: release-1.8.2rc1~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=59e6f149a77aef35a236ed546c3ff15a699b1519;p=thirdparty%2Funbound.git - Fix that unbound-control can send file for view_local_datas. git-svn-id: file:///svn/unbound/trunk@4978 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 879aade0b..dca55b57b 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -4,6 +4,7 @@ - Fix #4193: Fix that prefetch failure does not overwrite valid cache entry with SERVFAIL. - Add unbound-control view_local_datas command, like local_datas. + - Fix that unbound-control can send file for view_local_datas. 22 November 2018: Wouter - With ./configure --with-pyunbound --with-pythonmodule diff --git a/smallapp/unbound-control.c b/smallapp/unbound-control.c index ea03f1cd1..b947198ef 100644 --- a/smallapp/unbound-control.c +++ b/smallapp/unbound-control.c @@ -719,9 +719,10 @@ go_cmd(SSL* ssl, int fd, int quiet, int argc, char* argv[]) if(argc == 1 && strcmp(argv[0], "load_cache") == 0) { send_file(ssl, fd, stdin, buf, sizeof(buf)); } - else if(argc == 1 && (strcmp(argv[0], "local_zones") == 0 || + else if(argc >= 1 && (strcmp(argv[0], "local_zones") == 0 || strcmp(argv[0], "local_zones_remove") == 0 || strcmp(argv[0], "local_datas") == 0 || + strcmp(argv[0], "view_local_datas") == 0 || strcmp(argv[0], "local_datas_remove") == 0)) { send_file(ssl, fd, stdin, buf, sizeof(buf)); send_eof(ssl, fd);