Project

General

Profile

« Previous | Next » 

Revision 38b35612

Added by Renato Botelho about 10 years ago

Make sure config.xml is safe on disk when restoring a backup, ticket #4803

View differences:

etc/inc/config.lib.inc
218 218
		conf_mount_rw();
219 219
		unlink_if_exists("{$g['tmp_path']}/config.cache");
220 220
		copy("$file", "/cf/conf/config.xml");
221
		pfSense_fsync("/cf/conf/config.xml");
221 222
		disable_security_checks();
222 223
		log_error(sprintf(gettext('%1$s is restoring the configuration %2$s'), $g['product_name'], $file));
223 224
		file_notice("config.xml", sprintf(gettext('%1$s is restoring the configuration %2$s'), $g['product_name'], $file), "pfSenseConfigurator", "");

Also available in: Unified diff