mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-14 22:40:04 -04:00
3578. [bug] 'rndc -c file' now fails if 'file' does not exist.
[RT #33571]
(cherry picked from commit 17a00ff54c)
This commit is contained in:
parent
0103c44f73
commit
9614664990
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]
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue