From 995059950fe3b708b895d4063e24315451a5d8e8 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 6 Feb 2007 23:05:29 +0000 Subject: Parse config before locking. --- packages/tinydns/tinydns.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/tinydns') 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) { -- cgit v1.2.3