diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/config.lib.inc | 2 |
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; |