• Adrian Reber's avatar
    config: use dynamic variables for configuration files · b427927f
    Adrian Reber authored
    The code to read and parse configuration files was writing the result of
    the global configuration file to one variable and the result from the
    configuration file in the user's home to another variable:
    
      char **global_conf = NULL;
      char **user_conf = NULL;
    
    With this change the code now uses dynamic memory allocation to handle
    the different configuration files.
    
    It used to be:
    
      * parse global config
      * parse user config
      * evaluate global config
      * evaluate user config
      * evaluate CLI
    
    And now it is:
    
      * parse global config
      * evaluate global config
      * parse user config
      * evaluate user config
      * evaluate CLI
    
    This change is in preparation for the upcoming setting of a
    configuration file via environment variable and RPC configuration file
    usage.
    Signed-off-by: 's avatarAdrian Reber <areber@redhat.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    b427927f
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...