diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-21 19:39:03 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-21 19:39:03 +0000 |
commit | 51db4c344e4e2359ae72a16a0fcaee41bd15f95b (patch) | |
tree | b296be7887819d3ea9b6e8da31d8cddbef3683d6 | |
parent | f2d532ecfaeb153ac0816318d35f2acf2c5961e7 (diff) | |
download | pfsense-51db4c344e4e2359ae72a16a0fcaee41bd15f95b.zip pfsense-51db4c344e4e2359ae72a16a0fcaee41bd15f95b.tar.gz |
We really need to lock the configuration when outputting the config.cache
-rw-r--r-- | etc/inc/config.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index abedcf3..a4ff0e6 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -270,11 +270,13 @@ function parse_config($parse = false) { ******/ function generate_config_cache($config) { global $g; + config_lock(); conf_mount_rw(); $configcache = fopen($g['tmp_path'] . '/config.cache', "w"); fwrite($configcache, serialize($config)); fclose($configcache); conf_mount_ro(); + config_unlock(); return true; } |