diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-17 20:38:07 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-17 20:38:07 +0000 |
commit | 04daa3c6c15d70cb560ad6d018533b382cba9fab (patch) | |
tree | e460186822a93af5230968ea4add184ebba37f1a | |
parent | 8c65eb759d23f9b33762573667718d4a0fd2a71d (diff) | |
download | pfsense-04daa3c6c15d70cb560ad6d018533b382cba9fab.zip pfsense-04daa3c6c15d70cb560ad6d018533b382cba9fab.tar.gz |
MFC 6936
move conf_mount_rw() before open
-rw-r--r-- | etc/inc/config.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index cf26286..5e2cc7b 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -750,11 +750,12 @@ function write_config($desc="Unknown", $backup = true) { $config['revision']['time'] = $changetime; config_lock(); - conf_mount_rw(); /* generate configuration XML */ $xmlconfig = dump_xml_config($config, $g['xml_rootobj']); + conf_mount_rw(); + /* write new configuration */ $fd = fopen("{$g['cf_conf_path']}/config.xml", "w"); if (!$fd) |