aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-29 13:58:45 +0000
committerErmal <eri@pfsense.org>2010-03-29 13:58:45 +0000
commit56619cc2b97abef4248ea2058fe17c814c20238d (patch)
treef8dce27b2d2fbcd6f651fa3e4f7c8255d3796db9
parentc0cf14415df4b1e70be1d903a04db006b1896be7 (diff)
downloadpfsense-packages-56619cc2b97abef4248ea2058fe17c814c20238d.tar.gz
pfsense-packages-56619cc2b97abef4248ea2058fe17c814c20238d.tar.bz2
pfsense-packages-56619cc2b97abef4248ea2058fe17c814c20238d.zip
This code does not need rw access.
-rw-r--r--config/tinydns/tinydns.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/tinydns/tinydns.inc b/config/tinydns/tinydns.inc
index 18d522f4..ba616846 100644
--- a/config/tinydns/tinydns.inc
+++ b/config/tinydns/tinydns.inc
@@ -323,16 +323,17 @@ function tinydns_get_backup_record($record) {
function tinydns_setup_ping_items() {
global $g, $config;
+
if(!$config['installedpackages']['tinydnsdomains'])
return;
$wanif = get_real_wan_interface();
$ip = find_interface_ip($wanif);
- conf_mount_rw();
+
$processed = array();
/* XXX: make this work with other packages */
- $fd = fopen("/var/db/pkgpinghosts", "w");
+ $fd = fopen("{$g['vardb_path']}/pkgpinghosts", "w");
if(!$fd) {
- log_error("Could not open /var/db/pkgpinghosts for writing.");
+ log_error("Could not open {$g['vardb_path']}/pkgpinghosts for writing.");
return;
}
config_lock();
@@ -379,7 +380,6 @@ function tinydns_setup_ping_items() {
}
fclose($fd);
config_unlock();
- conf_mount_ro();
}
function tinydns_create_zone_file() {