From 51db4c344e4e2359ae72a16a0fcaee41bd15f95b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 21 Apr 2007 19:39:03 +0000 Subject: We really need to lock the configuration when outputting the config.cache --- etc/inc/config.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc/inc/config.inc') 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; } -- cgit v1.1