3578. [bug] 'rndc -c file' now fails if 'file' does not exist.

[RT #33571]
(cherry picked from commit 17a00ff54c)
This commit is contained in:
Mark Andrews 2013-05-30 11:09:29 +10:00
parent 0103c44f73
commit 9614664990
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,6 @@
3578. [bug] 'rndc -c file' now fails if 'file' does not exist.
[RT #33571]
3577. [bug] Handle zero TTL values better. [RT #33411]
3576. [bug] Address a shutdown race when validating. [RT #33573]

View file

@ -491,6 +491,9 @@ parse_config(isc_mem_t *mctx, isc_log_t *log, const char *keyname,
conffile = admin_keyfile;
conftype = &cfg_type_rndckey;
if (c_flag)
fatal("%s does not exist", admin_conffile);
if (! isc_file_exists(conffile))
fatal("neither %s nor %s was found",
admin_conffile, admin_keyfile);