diff options
author | doktornotor <jakub.moc@gmail.com> | 2015-07-13 13:35:28 +0200 |
---|---|---|
committer | doktornotor <jakub.moc@gmail.com> | 2015-07-13 13:35:28 +0200 |
commit | 769637b09663e0b38fe7abe86847e637d4f01c66 (patch) | |
tree | 53573e658936d1b490a9a5764031a4b4479bb32d /config/tinydns | |
parent | 2c68b4b20bc0709ec485f0292648b50aff3ad098 (diff) | |
download | pfsense-packages-769637b09663e0b38fe7abe86847e637d4f01c66.tar.gz pfsense-packages-769637b09663e0b38fe7abe86847e637d4f01c66.tar.bz2 pfsense-packages-769637b09663e0b38fe7abe86847e637d4f01c66.zip |
tinydns - fix Bug #2720
Add patch by Yonas Yanfa; cannot use file_exists with wildcard.
Diffstat (limited to 'config/tinydns')
-rw-r--r-- | config/tinydns/tinydns.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |