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

[RT #33571]
This commit is contained in:
Mark Andrews 2013-05-30 11:09:29 +10:00
parent 6d4487398e
commit 17a00ff54c
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

@ -499,6 +499,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);