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