summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.lib.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/config.lib.inc')
-rw-r--r--etc/inc/config.lib.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc
index dedb3ac..ad9300e 100644
--- a/etc/inc/config.lib.inc
+++ b/etc/inc/config.lib.inc
@@ -486,7 +486,7 @@ function safe_write_file($file, $content, $force_binary) {
fflush($fd);
fclose($fd);
- if (!rename($tmp_file, $file)) {
+ if (!pfSense_fsync($tmp_file) || !rename($tmp_file, $file)) {
// Unable to move temporary file to original
@unlink($tmp_file);
return false;
OpenPOWER on IntegriCloud