From 769637b09663e0b38fe7abe86847e637d4f01c66 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Mon, 13 Jul 2015 13:35:28 +0200 Subject: tinydns - fix Bug #2720 Add patch by Yonas Yanfa; cannot use file_exists with wildcard. --- config/tinydns/tinydns.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/tinydns/tinydns.inc b/config/tinydns/tinydns.inc index 047383ff..5effa10c 100644 --- a/config/tinydns/tinydns.inc +++ b/config/tinydns/tinydns.inc @@ -1163,7 +1163,7 @@ function tinydns_dnscache_forwarding_servers($index) { exec("rm -R {$g['varetc_path']}/dnscache/root/servers/"); exec("/bin/mkdir -p {$g['varetc_path']}/dnscache{$index}/root/servers/"); if (intval($config['version']) >= 6) - if (file_exists("{$g['varetc_path']}/nameserver_*")) { + if (!empty(glob("{$g['varetc_path']}/nameserver_*"))) { exec("/bin/cat {$g['varetc_path']}/nameserver_* > {$g['varetc_path']}/dnscache{$index}/root/servers/@"); } else { $fw = fopen("{$g['varetc_path']}/dnscache{$index}/root/servers/@", "w"); -- cgit v1.2.3 From 880872c7321eddfd1344d1843c7d92d2334b45de Mon Sep 17 00:00:00 2001 From: doktornotor Date: Mon, 13 Jul 2015 13:37:15 +0200 Subject: Bump tinydns version --- pkg_config.10.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg_config.10.xml b/pkg_config.10.xml index 59ccb704..c164d923 100644 --- a/pkg_config.10.xml +++ b/pkg_config.10.xml @@ -686,7 +686,7 @@ pfSense version of TinyDNS which features failover host support http://cr.yp.to/djbdns.html Services - 1.0.6.21 + 1.0.6.22 Beta https://doc.pfsense.org/index.php/Tinydns_package 2.2 -- cgit v1.2.3