summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-07-10 17:48:06 -0500
committerChris Buechler <cmb@pfsense.org>2015-07-10 17:48:06 -0500
commit601ba5427ac6cd8fb91614262d139cb7303ec4c5 (patch)
tree95d8defa29a66763efc1f6777b3de2fd0b292ce1 /etc/inc
parent224d9d307eec1acfdc2bbcc80f13cfa9a5a393ed (diff)
downloadpfsense-601ba5427ac6cd8fb91614262d139cb7303ec4c5.zip
pfsense-601ba5427ac6cd8fb91614262d139cb7303ec4c5.tar.gz
fsync conf_path here too
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/config.lib.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc
index db0c09a..d5274c1 100644
--- a/etc/inc/config.lib.inc
+++ b/etc/inc/config.lib.inc
@@ -211,6 +211,7 @@ function restore_backup($file) {
unlink_if_exists("{$g['tmp_path']}/config.cache");
copy("$file","/cf/conf/config.xml");
pfSense_fsync("/cf/conf/config.xml");
+ pfSense_fsync($g['conf_path']);
disable_security_checks();
log_error(sprintf(gettext('%1$s is restoring the configuration %2$s'), $g['product_name'], $file));
file_notice("config.xml", sprintf(gettext('%1$s is restoring the configuration %2$s'), $g['product_name'], $file), "pfSenseConfigurator", "");
OpenPOWER on IntegriCloud