From b062907f5f0d29b3a852b8412f8875e55a3ba4e1 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 11:59:54 +0200 Subject: ftpproxy.inc - remove useless config_(un)lock calls This function does nothing but return. --- config/ftpproxy/ftpproxy.inc | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/ftpproxy/ftpproxy.inc b/config/ftpproxy/ftpproxy.inc index ece580c2..386a1d84 100644 --- a/config/ftpproxy/ftpproxy.inc +++ b/config/ftpproxy/ftpproxy.inc @@ -31,7 +31,6 @@ */ function sync_package_ftpproxy() { conf_mount_rw(); - config_lock(); global $config; $cf = $config['installedpackages']['ftpclientproxy']['config'][0]; @@ -85,7 +84,6 @@ function sync_package_ftpproxy() { ); restart_service("ftp-proxy"); conf_mount_ro(); - config_unlock(); filter_configure(); } -- cgit v1.2.3 From 860a721030ef94a6ebb89a390593e143bdaf8985 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 12:02:03 +0200 Subject: widentd.xml - remove useless config_(un)lock calls This function does nothing but return. --- config/widentd/widentd.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/widentd/widentd.xml b/config/widentd/widentd.xml index 27a8ffe8..fe28ba2d 100644 --- a/config/widentd/widentd.xml +++ b/config/widentd/widentd.xml @@ -102,7 +102,6 @@ Date: Tue, 11 Aug 2015 12:03:48 +0200 Subject: pfflowd.xml - remove useless config_(un)lock calls This function does nothing but return. --- config/pfflowd/pfflowd.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/pfflowd/pfflowd.xml b/config/pfflowd/pfflowd.xml index ea32c858..44294d69 100644 --- a/config/pfflowd/pfflowd.xml +++ b/config/pfflowd/pfflowd.xml @@ -122,7 +122,6 @@ Date: Tue, 11 Aug 2015 12:05:20 +0200 Subject: ntopng.xml - remove useless config_(un)lock calls This function does nothing but return. --- config/ntopng/ntopng.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/ntopng/ntopng.xml b/config/ntopng/ntopng.xml index 3d07b064..6c01515c 100644 --- a/config/ntopng/ntopng.xml +++ b/config/ntopng/ntopng.xml @@ -143,7 +143,6 @@ return; } conf_mount_rw(); - config_lock(); global $config; global $input_errors; global $pf_version, $scripts_path, $fonts_path; @@ -263,7 +262,6 @@ mwexec_bg("{$redis_path}/redis-cli SET user.admin.password " . escapeshellarg($password)); mwexec_bg("{$redis_path}/redis-cli save"); conf_mount_ro(); - config_unlock(); } function ntopng_update_geoip() { $fetchcmd = "/usr/bin/fetch"; -- cgit v1.2.3 From 50a6e6b1d41355333a071f1fe027ceb7c33df361 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 12:06:48 +0200 Subject: darkstat.xml - remove useless config_(un)lock calls This function does nothing but return. --- config/darkstat/darkstat.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/darkstat/darkstat.xml b/config/darkstat/darkstat.xml index d0b71cac..3b691741 100644 --- a/config/darkstat/darkstat.xml +++ b/config/darkstat/darkstat.xml @@ -262,7 +262,6 @@ Date: Tue, 11 Aug 2015 12:08:48 +0200 Subject: nut.inc - remove useless config_(un)lock calls This function does nothing but return. --- config/nut/nut.inc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/config/nut/nut.inc b/config/nut/nut.inc index 578bb82f..fbc75a30 100644 --- a/config/nut/nut.inc +++ b/config/nut/nut.inc @@ -498,8 +498,6 @@ EOD; global $config; global $input_errors; - config_lock(); - stop_service("nut"); /* create state path */ @@ -542,7 +540,5 @@ EOD; exec('/bin/rm -rf /var/db/nut'); conf_mount_ro(); } - - config_unlock(); } ?> -- cgit v1.2.3 From 9685253ce781dd828fa37acd0490500447d33005 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 12:10:14 +0200 Subject: softflowd.xml - remove useless config_(un)lock calls This function does nothing but return. --- config/softflowd/softflowd.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/softflowd/softflowd.xml b/config/softflowd/softflowd.xml index 6e9c080f..adf5359c 100644 --- a/config/softflowd/softflowd.xml +++ b/config/softflowd/softflowd.xml @@ -183,7 +183,6 @@ Date: Tue, 11 Aug 2015 12:12:02 +0200 Subject: tinydns.inc - remove useless config_(un)lock calls This function does nothing but return. --- config/tinydns/tinydns.inc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/config/tinydns/tinydns.inc b/config/tinydns/tinydns.inc index f2bda436..3bf64777 100644 --- a/config/tinydns/tinydns.inc +++ b/config/tinydns/tinydns.inc @@ -420,7 +420,7 @@ function tinydns_setup_ping_items() { log_error("Could not open {$g['vardb_path']}/pkgpinghosts for writing."); return; } - config_lock(); + /* write out each ip address so ping_hosts.sh can begin monitoring ip * status and create a database of the status information that we can use. */ @@ -484,7 +484,6 @@ function tinydns_setup_ping_items() { } } fclose($fd); - config_unlock(); } function tinydns_create_zone_file() { @@ -492,7 +491,6 @@ function tinydns_create_zone_file() { conf_mount_rw(); if(file_exists("/tmp/config.cache")) unlink("/tmp/config.cache"); - config_lock(); if(file_exists("{$g['varrun_path']}/service/tinydns/root/data")) exec("rm -f {$g['varrun_path']}/service/tinydns/root/data"); if(!is_dir("{$g['varrun_path']}/service/tinydns/root")) @@ -648,7 +646,6 @@ function tinydns_create_zone_file() { fclose($fd); /* tell tinydns to reload zone file */ exec("cd {$g['varrun_path']}/service/tinydns/root && /usr/local/bin/tinydns-data"); - config_unlock(); conf_mount_ro(); } -- cgit v1.2.3 From 0c3d29b311af6aee9df82eb6ffbc0046a589cf87 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 12:13:55 +0200 Subject: spamd_db_ext.php - remove useless config_(un)lock calls This function does nothing but return. --- config/spamd/spamd_db_ext.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/config/spamd/spamd_db_ext.php b/config/spamd/spamd_db_ext.php index 61a90141..010027e3 100644 --- a/config/spamd/spamd_db_ext.php +++ b/config/spamd/spamd_db_ext.php @@ -165,7 +165,6 @@ if($_GET['whitelist'] <> "") { } function delete_from_spamd_db($srcip) { - config_lock(); $fd = fopen("/tmp/execcmds", "w"); fwrite($fd, "#!/bin/sh\n"); fwrite($fd, "/usr/local/sbin/spamdb -d {$srcip}\n"); @@ -178,7 +177,6 @@ function delete_from_spamd_db($srcip) { system("/bin/sh /tmp/execcmds"); mwexec("/usr/bin/killall -HUP spamlogd"); mwexec("/sbin/pfctl -q -t blacklist -T replace -f /var/db/blacklist.txt"); - config_unlock(); } function basic_auth_prompt(){ @@ -189,17 +187,14 @@ function basic_auth_prompt(){ } function add_to_blacklist($srcip) { - config_lock(); $fd = fopen("/var/db/blacklist.txt", "a"); fwrite($fd, "{$srcip}\n"); fclose($fd); mwexec("/sbin/pfctl -q -t spamd -T add -f /var/db/blacklist.txt"); mwexec("/sbin/pfctl -q -t blacklist -T add -f /var/db/blacklist.txt"); - config_unlock(); } function delete_from_blacklist($srcip) { - config_lock(); $blacklist = split("\n", file_get_contents("/var/db/blacklist.txt")); $fd = fopen("/var/db/blacklist.txt", "w"); foreach($blacklist as $bl) { @@ -210,11 +205,9 @@ function delete_from_blacklist($srcip) { fclose($fd); mwexec("/sbin/pfctl -q -t spamd -T delete $srcip"); mwexec("/sbin/pfctl -q -t blacklist -T replace -f /var/db/blacklist.txt"); - config_unlock(); } function delete_from_whitelist($srcip) { - config_lock(); $whitelist = split("\n", file_get_contents("/var/db/whitelist.txt")); $fd = fopen("/var/db/whitelist.txt", "w"); foreach($whitelist as $wl) { @@ -225,7 +218,6 @@ function delete_from_whitelist($srcip) { fclose($fd); mwexec("/sbin/pfctl -q -t spamd -T delete $srcip"); mwexec("/sbin/pfctl -q -t whitelist -T replace -f /var/db/whitelist.txt"); - config_unlock(); } function hup_spamd() { @@ -234,4 +226,4 @@ function hup_spamd() { exit; -?> \ No newline at end of file +?> -- cgit v1.2.3 From 90beeccde2279ff44438fbc197b1f67ae028faa8 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 12:16:06 +0200 Subject: spamd_verify_to_address.php - remove useless config_(un)lock calls This function does nothing but return. --- config/spamd/spamd_verify_to_address.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config/spamd/spamd_verify_to_address.php b/config/spamd/spamd_verify_to_address.php index 56821370..504107d3 100644 --- a/config/spamd/spamd_verify_to_address.php +++ b/config/spamd/spamd_verify_to_address.php @@ -114,9 +114,7 @@ foreach($grey_hosts as $grey) { if($debug) echo "/usr/local/sbin/spamdb -a \"<$email_to>\" -T\n"; exec("/usr/local/sbin/spamdb -a \"<$email_to>\" -T"); - config_lock(); system("echo $server_ip >> /var/db/blacklist.txt"); - config_unlock(); $result = mwexec("/usr/local/sbin/spamdb -a $server_ip -t"); } else { if($debug) @@ -141,4 +139,4 @@ if($debug) { mwexec("/sbin/pfctl -q -t blacklist -T replace -f /var/db/blacklist.txt"); -?> \ No newline at end of file +?> -- cgit v1.2.3 From 3167cca31c30ac32f4cf1d54764db766e1d38989 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 12:21:46 +0200 Subject: bandwidthd.inc - remove useless config_(un)lock calls This function does nothing but return. --- config/bandwidthd/bandwidthd.inc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/config/bandwidthd/bandwidthd.inc b/config/bandwidthd/bandwidthd.inc index ac5cc116..b57b2732 100644 --- a/config/bandwidthd/bandwidthd.inc +++ b/config/bandwidthd/bandwidthd.inc @@ -51,14 +51,12 @@ function is_blank($value) { function bandwidthd_install_deinstall() { conf_mount_rw(); - config_lock(); exec("rm -f /usr/local/etc/rc.d/bandwidthd*"); exec("rm -rf " . PKG_BANDWIDTHD_BASE . "/htdocs"); exec("rm -f /usr/local/www/bandwidthd"); // Remove the cron job, if it is there install_cron_job("/bin/kill -HUP `cat /var/run/bandwidthd.pid`", false); conf_mount_ro(); - config_unlock(); } function bandwidthd_install_config() { @@ -71,7 +69,6 @@ function bandwidthd_install_config() { $bandwidthd_runtime_library_env = PKG_BANDWIDTHD_RUNTIME_LIBRARY_ENV; conf_mount_rw(); - config_lock(); /* user defined values */ $bandwidthd_config = $config['installedpackages']['bandwidthd']['config'][0]; @@ -391,7 +388,6 @@ EOD; install_cron_job("/bin/kill -HUP `cat /var/run/bandwidthd.pid`", false); } conf_mount_ro(); - config_unlock(); stop_service("bandwidthd"); if ($bandwidthd_enable) { start_service("bandwidthd"); -- cgit v1.2.3 From 4ccaef3a83fbe893438980f1b48726010c457891 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 12:29:00 +0200 Subject: ntop.xml - remove useless config_(un)lock calls This function does nothing but return. --- config/ntop2/ntop.xml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config/ntop2/ntop.xml b/config/ntop2/ntop.xml index 4db9e9c8..57354f61 100644 --- a/config/ntop2/ntop.xml +++ b/config/ntop2/ntop.xml @@ -103,7 +103,6 @@ @@ -175,4 +173,4 @@ } ]]> - \ No newline at end of file + -- cgit v1.2.3 From 6dd169c4505556882c31a0b894341869b574d6ce Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 12:30:33 +0200 Subject: autoconfigbackup.inc - remove useless config_(un)lock calls This function does nothing but return. --- config/autoconfigbackup/autoconfigbackup.inc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/config/autoconfigbackup/autoconfigbackup.inc b/config/autoconfigbackup/autoconfigbackup.inc index 2511a2a1..7050aab6 100644 --- a/config/autoconfigbackup/autoconfigbackup.inc +++ b/config/autoconfigbackup/autoconfigbackup.inc @@ -188,8 +188,6 @@ function upload_config($reasonm = "") { // Mount RW (if needed) conf_mount_rw(); - // Lock config - config_lock(); $notice_text = "Beginning https://portal.pfsense.org configuration backup."; log_error($notice_text); @@ -254,8 +252,6 @@ function upload_config($reasonm = "") { update_filter_reload_status($notice_text); } - // Unlock config - config_unlock(); // Mount image RO (if needed) conf_mount_ro(); -- cgit v1.2.3 From 58f61c2c8ed377b29b03461977bce207f501ea1d Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 12:36:10 +0200 Subject: squid_auth.inc - remove useless config_(un)lock calls This function does nothing but return. --- config/squid/squid_auth.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/config/squid/squid_auth.inc b/config/squid/squid_auth.inc index 7c99a01b..54e69b49 100644 --- a/config/squid/squid_auth.inc +++ b/config/squid/squid_auth.inc @@ -35,8 +35,7 @@ function global_eval_auth_options() { global $config; conf_mount_rw(); - config_lock(); - + switch ($config['installedpackages']['squidauth']['config'][0]['auth_method']) { case "none": dynamic_auth_content("pkg_edit"); @@ -69,7 +68,6 @@ function global_eval_auth_options() break; } - config_unlock(); conf_mount_ro(); } /* end function global_eval_auth_options */ @@ -443,4 +441,4 @@ function dynamic_auth_content($pkgvar) { } } /* end function dynamic_auth_content */ -?> \ No newline at end of file +?> -- cgit v1.2.3 From fc20007410a5f3670842ce0c236657227d7425ec Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 12:37:05 +0200 Subject: squid_auth.inc - remove useless config_(un)lock calls This function does nothing but return. --- config/squid3/31/squid_auth.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/config/squid3/31/squid_auth.inc b/config/squid3/31/squid_auth.inc index 7c99a01b..54e69b49 100644 --- a/config/squid3/31/squid_auth.inc +++ b/config/squid3/31/squid_auth.inc @@ -35,8 +35,7 @@ function global_eval_auth_options() { global $config; conf_mount_rw(); - config_lock(); - + switch ($config['installedpackages']['squidauth']['config'][0]['auth_method']) { case "none": dynamic_auth_content("pkg_edit"); @@ -69,7 +68,6 @@ function global_eval_auth_options() break; } - config_unlock(); conf_mount_ro(); } /* end function global_eval_auth_options */ @@ -443,4 +441,4 @@ function dynamic_auth_content($pkgvar) { } } /* end function dynamic_auth_content */ -?> \ No newline at end of file +?> -- cgit v1.2.3 From 4ab723d0ede932f811d2e8dce24aed0982ea7e30 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 12:37:57 +0200 Subject: squid_auth.inc - remove useless config_(un)lock calls This function does nothing but return. --- config/squid3/33/squid_auth.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/config/squid3/33/squid_auth.inc b/config/squid3/33/squid_auth.inc index 7c99a01b..54e69b49 100644 --- a/config/squid3/33/squid_auth.inc +++ b/config/squid3/33/squid_auth.inc @@ -35,8 +35,7 @@ function global_eval_auth_options() { global $config; conf_mount_rw(); - config_lock(); - + switch ($config['installedpackages']['squidauth']['config'][0]['auth_method']) { case "none": dynamic_auth_content("pkg_edit"); @@ -69,7 +68,6 @@ function global_eval_auth_options() break; } - config_unlock(); conf_mount_ro(); } /* end function global_eval_auth_options */ @@ -443,4 +441,4 @@ function dynamic_auth_content($pkgvar) { } } /* end function dynamic_auth_content */ -?> \ No newline at end of file +?> -- cgit v1.2.3 From a01fc84c0bdf74ab694544dbce34a79dae41c3b5 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 12:39:15 +0200 Subject: squid_ng.inc - remove useless config_(un)lock calls This function does nothing but return. --- config/squid/squid_ng.inc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/config/squid/squid_ng.inc b/config/squid/squid_ng.inc index f96c73e4..01f56ea3 100644 --- a/config/squid/squid_ng.inc +++ b/config/squid/squid_ng.inc @@ -38,7 +38,6 @@ function global_write_squid_config() { global $config; conf_mount_rw(); - config_lock(); /* define squid configuration file in variable for replace function */ $squidconfig = "/usr/local/etc/squid/squid.conf"; @@ -791,7 +790,6 @@ function global_write_squid_config() fclose($fout); conf_mount_ro(); - config_unlock(); touch($squidconfig); } /* end function write_squid_config */ @@ -1032,7 +1030,6 @@ function write_static_squid_config() { function mod_htpasswd() { global $config; conf_mount_rw(); - config_lock(); if (!file_exists("/usr/local/etc/squid/advanced/ncsa")) mwexec("mkdir -p /usr/local/etc/squid/advanced/ncsa"); @@ -1048,7 +1045,6 @@ function mod_htpasswd() { fclose($passfile); conf_mount_ro(); - config_unlock(); } function generate_htpasswd($username, $password) { -- cgit v1.2.3 From 310881a25cc9c9960339dc99109e33217f6dad91 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 12:40:29 +0200 Subject: squid_ng.inc - remove useless config_(un)lock calls This function does nothing but return. --- config/squid3/31/squid_ng.inc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/config/squid3/31/squid_ng.inc b/config/squid3/31/squid_ng.inc index 3b9ef405..d1c37dbf 100644 --- a/config/squid3/31/squid_ng.inc +++ b/config/squid3/31/squid_ng.inc @@ -38,7 +38,6 @@ function global_write_squid_config() { global $config; conf_mount_rw(); - config_lock(); /* define squid configuration file in variable for replace function */ $squidconfig = "/usr/local/etc/squid/squid.conf"; @@ -791,7 +790,6 @@ function global_write_squid_config() fclose($fout); conf_mount_ro(); - config_unlock(); touch($squidconfig); } /* end function write_squid_config */ @@ -1032,7 +1030,6 @@ function write_static_squid_config() { function mod_htpasswd() { global $config; conf_mount_rw(); - config_lock(); if (!file_exists("/usr/local/etc/squid/advanced/ncsa")) mwexec("mkdir -p /usr/local/etc/squid/advanced/ncsa"); @@ -1048,7 +1045,6 @@ function mod_htpasswd() { fclose($passfile); conf_mount_ro(); - config_unlock(); } function generate_htpasswd($username, $password) { -- cgit v1.2.3 From 72a4b890c195d26391d3c31bce1448cb4bc0b44b Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 12:41:25 +0200 Subject: squid_ng.inc - remove useless config_(un)lock calls This function does nothing but return. --- config/squid3/33/squid_ng.inc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/config/squid3/33/squid_ng.inc b/config/squid3/33/squid_ng.inc index 3b9ef405..d1c37dbf 100755 --- a/config/squid3/33/squid_ng.inc +++ b/config/squid3/33/squid_ng.inc @@ -38,7 +38,6 @@ function global_write_squid_config() { global $config; conf_mount_rw(); - config_lock(); /* define squid configuration file in variable for replace function */ $squidconfig = "/usr/local/etc/squid/squid.conf"; @@ -791,7 +790,6 @@ function global_write_squid_config() fclose($fout); conf_mount_ro(); - config_unlock(); touch($squidconfig); } /* end function write_squid_config */ @@ -1032,7 +1030,6 @@ function write_static_squid_config() { function mod_htpasswd() { global $config; conf_mount_rw(); - config_lock(); if (!file_exists("/usr/local/etc/squid/advanced/ncsa")) mwexec("mkdir -p /usr/local/etc/squid/advanced/ncsa"); @@ -1048,7 +1045,6 @@ function mod_htpasswd() { fclose($passfile); conf_mount_ro(); - config_unlock(); } function generate_htpasswd($username, $password) { -- cgit v1.2.3 From 9642d274821a46447222673ddc757b1ebb390cb9 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 12:45:12 +0200 Subject: stunnel.inc - remove useless config_(un)lock calls This function does nothing but return. --- config/stunnel/stunnel.inc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/config/stunnel/stunnel.inc b/config/stunnel/stunnel.inc index dd3eee5c..4398a0dc 100644 --- a/config/stunnel/stunnel.inc +++ b/config/stunnel/stunnel.inc @@ -122,7 +122,6 @@ function stunnel_delete($config) { function stunnel_save($config) { $GLOBALS['config']['installedpackages']['stunnelcerts']['savemsg']=''; conf_mount_rw(); - config_lock(); if (!file_exists(STUNNEL_ETCDIR)) @mkdir(STUNNEL_ETCDIR, 0755, true); $fout = fopen(STUNNEL_ETCDIR . "/stunnel.conf","w"); @@ -148,7 +147,6 @@ function stunnel_save($config) { } fclose($fout); conf_mount_ro(); - config_unlock(); system("/usr/local/etc/rc.d/stunnel.sh stop 2>/dev/null"); system("/usr/local/etc/rc.d/stunnel.sh start 2>/dev/null"); } @@ -221,7 +219,6 @@ function stunnel_install() { unlink_if_exists("/usr/local/etc/rc.d/stunnel"); conf_mount_rw(); - config_lock(); $fout = fopen(STUNNEL_ETCDIR . "/stunnel.conf","w"); fwrite($fout, "cert = " . STUNNEL_ETCDIR . "/stunnel.pem \n"); fwrite($fout, "chroot = /var/tmp/stunnel \n"); @@ -238,7 +235,6 @@ function stunnel_install() { } fclose($fout); conf_mount_ro(); - config_unlock(); } function stunnel_deinstall() { -- cgit v1.2.3 From 4b6586dd81e0392369b7a9f5eee658a19b6b60f5 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 13:01:56 +0200 Subject: strikeback.inc - remove useless config_(un)lock calls This function does nothing but return. --- config/strikeback/strikeback.inc | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/strikeback/strikeback.inc b/config/strikeback/strikeback.inc index 89e7596c..131e961b 100644 --- a/config/strikeback/strikeback.inc +++ b/config/strikeback/strikeback.inc @@ -44,7 +44,6 @@ function php_install_command_sb() global $config; conf_mount_rw(); - config_lock(); if (!is_dir('/usr/local/www/packages/')) { exec("mkdir /usr/local/www/packages/"); @@ -105,7 +104,6 @@ function php_install_command_sb() exec("mv /usr/local/www/packages/strikeback/43132.png /usr/local/www/packages/strikeback/color.png"); conf_mount_ro(); - config_unlock(); } -- cgit v1.2.3 From 59d8f8f2c468701cd0362d57b0027bf415aaab68 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 13:04:04 +0200 Subject: haproxy_frontends.php - remove useless config_(un)lock calls This function does nothing but return. --- config/haproxy-legacy/haproxy_frontends.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/haproxy-legacy/haproxy_frontends.php b/config/haproxy-legacy/haproxy_frontends.php index 1aef0b8f..6fdb97ff 100755 --- a/config/haproxy-legacy/haproxy_frontends.php +++ b/config/haproxy-legacy/haproxy_frontends.php @@ -45,9 +45,7 @@ if ($_POST) { if ($_POST['apply']) { $retval = 0; - config_lock(); $retval = haproxy_configure(); - config_unlock(); $savemsg = get_std_save_message($retval); unlink_if_exists($d_haproxyconfdirty_path); } -- cgit v1.2.3 From 1b872c49fa7bafa07a27fb1f0efa75ddf080617e Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 13:05:06 +0200 Subject: haproxy_servers.php - remove useless config_(un)lock calls This function does nothing but return. --- config/haproxy-legacy/haproxy_servers.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/haproxy-legacy/haproxy_servers.php b/config/haproxy-legacy/haproxy_servers.php index e04ed74c..8a385ed1 100755 --- a/config/haproxy-legacy/haproxy_servers.php +++ b/config/haproxy-legacy/haproxy_servers.php @@ -46,9 +46,7 @@ if ($_POST) { if ($_POST['apply']) { $retval = 0; - config_lock(); $retval = haproxy_configure(); - config_unlock(); $savemsg = get_std_save_message($retval); unlink_if_exists($d_haproxyconfdirty_path); } -- cgit v1.2.3 From 030eacd6daaf3ca5ed17b8d16c01e2b010483573 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 13:06:07 +0200 Subject: haproxy_listeners.php - remove useless config_(un)lock calls This function does nothing but return. --- config/haproxy/haproxy_listeners.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/haproxy/haproxy_listeners.php b/config/haproxy/haproxy_listeners.php index a5bc9a22..adc0178c 100755 --- a/config/haproxy/haproxy_listeners.php +++ b/config/haproxy/haproxy_listeners.php @@ -45,9 +45,7 @@ if ($_POST) { if ($_POST['apply']) { $retval = 0; - config_lock(); $retval = haproxy_configure(); - config_unlock(); $savemsg = get_std_save_message($retval); unlink_if_exists($d_haproxyconfdirty_path); } -- cgit v1.2.3 From ea7a711c40ebe0a245464046c714dd6d81f31620 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 13:06:57 +0200 Subject: haproxy_pools.php - remove useless config_(un)lock calls This function does nothing but return. --- config/haproxy/haproxy_pools.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/haproxy/haproxy_pools.php b/config/haproxy/haproxy_pools.php index a0bf75a2..aed3c3e6 100755 --- a/config/haproxy/haproxy_pools.php +++ b/config/haproxy/haproxy_pools.php @@ -49,9 +49,7 @@ if ($_POST) { if ($_POST['apply']) { $retval = 0; - config_lock(); $retval = haproxy_configure(); - config_unlock(); $savemsg = get_std_save_message($retval); unlink_if_exists($d_haproxyconfdirty_path); } -- cgit v1.2.3 From 9b36d6b6c1f95574b15dff4e9e8ba794d4502a73 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 13:08:40 +0200 Subject: imspector.inc - remove useless config_(un)lock calls This function does nothing but return. --- config/imspector/imspector.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/config/imspector/imspector.inc b/config/imspector/imspector.inc index 7853e627..bc5a939c 100644 --- a/config/imspector/imspector.inc +++ b/config/imspector/imspector.inc @@ -177,8 +177,7 @@ /*continue sync process*/ log_error("Imspector: Saving changes."); - config_lock(); - + /* remove existing rules */ exec('/sbin/pfctl -a imspector -Fr > /dev/null'); exec('/sbin/pfctl -a imspector -Fn > /dev/null'); @@ -408,8 +407,7 @@ EOD; imspector_action('restart'); } } - config_unlock(); - + /*check xmlrpc sync*/ imspector_sync_on_changes(); } -- cgit v1.2.3