aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-06 23:05:29 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-06 23:05:29 +0000
commit995059950fe3b708b895d4063e24315451a5d8e8 (patch)
tree1bb4c4b148dddd5574ea97e7089863411a5d9758 /packages
parent9f9dbbcd929dff558b1c855c2a2fbd94ace007ce (diff)
downloadpfsense-packages-995059950fe3b708b895d4063e24315451a5d8e8.tar.gz
pfsense-packages-995059950fe3b708b895d4063e24315451a5d8e8.tar.bz2
pfsense-packages-995059950fe3b708b895d4063e24315451a5d8e8.zip
Parse config before locking.
Diffstat (limited to 'packages')
-rw-r--r--packages/tinydns/tinydns.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
index 374b914f..7a27ca4c 100644
--- a/packages/tinydns/tinydns.inc
+++ b/packages/tinydns/tinydns.inc
@@ -248,10 +248,10 @@ function tinydns_setup_ping_items() {
function tinydns_create_zone_file() {
global $g, $config;
conf_mount_rw();
- config_lock();
if(file_exists("/tmp/config.cache"))
unlink("/tmp/config.cache");
parse_config(true);
+ config_lock();
exec("rm -f /service/tinydns/root/data");
$fd = fopen("/service/tinydns/root/data", "w");
if(!$fd) {