]> mj.ucw.cz Git - libucw.git/commit
LibUCW: Let cf_reload() reload all configuration files.
authorMartin Mares <mj@ucw.cz>
Mon, 9 Feb 2009 20:04:13 +0000 (21:04 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 9 Feb 2009 20:04:13 +0000 (21:04 +0100)
commitfde10b30d3f1f9a43df72e3ffea92e605505ceba
tree3cf90efc8b260e695e52d021463829b9424e8ca7
parenta6494a70ff56b4cfa172f9a4ec136338786478bc
LibUCW: Let cf_reload() reload all configuration files.

When a program is started with `-C' and/or `-S' switches to override the
default configuration and cf_reload() was called afterwards, it destroyed
the custom configuration and loaded the default instead.

To avoid this problem, I have added a list of configuration entries which
remembers all config files loaded and all configuration fragments executed,
as long as they are performed in the `postpone_commit' mode. The reloader
then re-executes all these operations and it records them in the new pool.
ucw/conf-input.c
ucw/conf-test.c