- ignore trusted-keys globs that have no files (from Paul Wouters).

git-svn-id: file:///svn/unbound/trunk@2770 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2012-10-01 07:18:49 +00:00
parent 033ad37837
commit a8e468fc67
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,6 @@
1 October 2012: Wouter
- ignore trusted-keys globs that have no files (from Paul Wouters).
27 September 2012: Wouter 27 September 2012: Wouter
- include: directive in config file accepts wildcards. Patch from - include: directive in config file accepts wildcards. Patch from
Paul Wouters. Suggested use: include: "/etc/unbound.d/conf.d/*" Paul Wouters. Suggested use: include: "/etc/unbound.d/conf.d/*"

View file

@ -836,7 +836,8 @@ anchor_read_bind_file_wild(struct val_anchors* anchors, ldns_buffer* buffer,
log_err("wildcard trusted-keys-file %s: expansion " log_err("wildcard trusted-keys-file %s: expansion "
"failed (%s)", pat, strerror(errno)); "failed (%s)", pat, strerror(errno));
} }
return 0; /* ignore globs that yield no files */
return 1;
} }
/* process files found, if any */ /* process files found, if any */
for(i=0; i<(size_t)g.gl_pathc; i++) { for(i=0; i<(size_t)g.gl_pathc; i++) {