mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-26 08:39:00 -04:00
3578. [bug] 'rndc -c file' now fails if 'file' does not exist.
[RT #33571]
This commit is contained in:
parent
6d4487398e
commit
17a00ff54c
2 changed files with 6 additions and 0 deletions
3
CHANGES
3
CHANGES
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue