unbound/unbound-1.1-checkconf.patch
Paul Wouters 482e5e4041 - Modified scandir patch to silently fail when wildcard matches nothing
- Patch to allow unbound-checkconf to find empty wildcard matches
2009-01-05 13:19:32 +00:00

16 lines
480 B
Diff

Index: smallapp/unbound-checkconf.c
===================================================================
--- smallapp/unbound-checkconf.c (revision 1404)
+++ smallapp/unbound-checkconf.c (working copy)
@@ -258,7 +258,9 @@
{
struct config_strlist* p;
for(p=list; p; p=p->next) {
- check_chroot_string(desc, &p->str, chrootdir, cfg);
+ /* skip wildcard checks, may fail */
+ if(strstr(p->str,"*") == NULL)
+ check_chroot_string(desc, &p->str, chrootdir, cfg);
}
}