diff --git a/doc/Changelog b/doc/Changelog index c9be58a72..ac60fc456 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +1 October 2012: Wouter + - ignore trusted-keys globs that have no files (from Paul Wouters). + 27 September 2012: Wouter - include: directive in config file accepts wildcards. Patch from Paul Wouters. Suggested use: include: "/etc/unbound.d/conf.d/*" diff --git a/validator/val_anchor.c b/validator/val_anchor.c index fa69df52d..cc551f833 100644 --- a/validator/val_anchor.c +++ b/validator/val_anchor.c @@ -836,7 +836,8 @@ anchor_read_bind_file_wild(struct val_anchors* anchors, ldns_buffer* buffer, log_err("wildcard trusted-keys-file %s: expansion " "failed (%s)", pat, strerror(errno)); } - return 0; + /* ignore globs that yield no files */ + return 1; } /* process files found, if any */ for(i=0; i<(size_t)g.gl_pathc; i++) {