summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-14 17:34:57 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-14 17:34:57 +0000
commit014beac3134b7fd2c7af3fe008940c946ff6d546 (patch)
treec7b23506782968e5bd08988015dc83fe4ca33082 /etc
parent435011b43cb31becf05ca8829dec43cc8dd5e742 (diff)
downloadpfsense-014beac3134b7fd2c7af3fe008940c946ff6d546.zip
pfsense-014beac3134b7fd2c7af3fe008940c946ff6d546.tar.gz
Say hello to firewall rules syncing!
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index b254cab..9b6c8d2 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -723,10 +723,10 @@ function is_service_running($service_name) {
*/
function backup_config_section($section) {
global $config;
- $new_section = &$config['section'];
+ $new_section = &$config['filter'];
/* generate configuration XML */
$xmlconfig = dump_xml_config($new_section, $section);
- return $new_section;
+ return $xmlconfig;
}
/*
@@ -739,9 +739,9 @@ function restore_config_section($section, $new_contents) {
conf_mount_rw();
config_lock();
$fout = fopen("{$g['tmp_path']}/tmpxml","w");
- fwrite($fout, $current_rules_section);
+ fwrite($fout, $new_contents);
fclose($fout);
- $section_xml = parse_xml_config_pkg($g['tmp_path'] . "/tmpxml", "packagegui");
+ $section_xml = parse_xml_config_pkg($g['tmp_path'] . "/tmpxml", $section);
$config[$section] = &$section_xml;
unlink($g['tmp_path'] . "/tmpxml");
write_config();
OpenPOWER on IntegriCloud