aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-11 14:58:07 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-11 14:58:07 +0200
commit2ec9434995e8d818829a1e2a4be2c174ba4e6138 (patch)
tree472c4a7fe223886ed9ed679daca0b082f09e2d3c
parent2de93d58e31852ba8b7de683d307a02ce91062b4 (diff)
downloadpfsense-packages-2ec9434995e8d818829a1e2a4be2c174ba4e6138.tar.gz
pfsense-packages-2ec9434995e8d818829a1e2a4be2c174ba4e6138.tar.bz2
pfsense-packages-2ec9434995e8d818829a1e2a4be2c174ba4e6138.zip
remove useless config_(un)lock calls round two
-rw-r--r--config/spamd/spamd.inc5
1 files changed, 0 insertions, 5 deletions
diff --git a/config/spamd/spamd.inc b/config/spamd/spamd.inc
index 71f20106..bbfae23e 100644
--- a/config/spamd/spamd.inc
+++ b/config/spamd/spamd.inc
@@ -43,7 +43,6 @@ function sync_package_spamd() {
}
conf_mount_rw();
- config_lock();
$fd = fopen("/etc/spamd.conf","w");
/* all header */
fwrite($fd, "all:\\\n\t:whitelist:blacklist");
@@ -155,8 +154,6 @@ function sync_package_spamd() {
spamd_install_cron(true);
log_error("Mounting RO");
conf_mount_ro();
- log_error("Unlocking config");
- config_unlock();
log_error("Restart cron");
mwexec("killall -HUP cron");
log_error("Setting up spamd.conf symlink");
@@ -176,7 +173,6 @@ function sync_package_spamd() {
function sync_package_spamd_whitelist() {
global $config;
conf_mount_rw();
- config_lock();
/* write out ip to the whitelist db */
$fd = fopen("/var/db/whitelist.txt","w");
if($config['installedpackages']['spamdwhitelist']['config'] != "") {
@@ -189,7 +185,6 @@ function sync_package_spamd_whitelist() {
mwexec("/usr/bin/killall -HUP spamlogd");
mwexec("/sbin/pfctl -t spamd-white -T add {$spamd['ip']}");
conf_mount_ro();
- config_unlock();
}
function spamd_generate_rules($type) {