]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #4130: print text describing -dd and unbound-checkconf on
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 20 Jul 2018 05:42:38 +0000 (05:42 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 20 Jul 2018 05:42:38 +0000 (05:42 +0000)
  config file read error at startup, the errors may have been moved
  away by the startup process.

git-svn-id: file:///svn/unbound/trunk@4792 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/unbound.c
doc/Changelog

index 4100fe3d33a5898c11055ffcbae94cf5516fd593..cb53af14076f1f767bc1717f4b6d4251351ce915 100644 (file)
@@ -627,8 +627,10 @@ run_daemon(const char* cfgfile, int cmdline_verbose, int debug_mode, const char*
                        fatal_exit("Could not alloc config defaults");
                if(!config_read(cfg, cfgfile, daemon->chroot)) {
                        if(errno != ENOENT)
-                               fatal_exit("Could not read config file: %s",
-                                       cfgfile);
+                               fatal_exit("Could not read config file: %s."
+                                       " With unbound -dd it stays on the "
+                                       " commandline to see more errors, "
+                                       " or unbound-checkconf", cfgfile);
                        log_warn("Continuing with default config settings");
                }
                apply_settings(daemon, cfg, cmdline_verbose, debug_mode, log_default_identity);
index 4a4a2347c405bd2766b88ca0ae5acc4e919469b1..859468d92f3238629b20174b810ddfa0621fbfa0 100644 (file)
@@ -1,3 +1,8 @@
+20 July 2018: Wouter
+       - Fix #4130: print text describing -dd and unbound-checkconf on
+         config file read error at startup, the errors may have been moved
+         away by the startup process.
+
 19 July 2018: Wouter
        - Fix #4129 unbound-control error message with wrong cert permissions
          is too cryptic.