- our_features = am_init_feature_set();
- our_features_string = am_feature_to_string(our_features);
-
- conffile = vstralloc(CONFIG_DIR, "/", "amanda-client.conf", NULL);
- if (read_clientconf(conffile) > 0) {
- error("error reading conffile: %s", conffile);
- /*NOTREACHED*/
- }
- amfree(conffile);
-
- config = stralloc(getconf_str(CNF_CONF));
+ /* and now try to load the configuration named in that file */
+ apply_config_overwrites(cfg_ovr);
+ config_init(CONFIG_INIT_CLIENT | CONFIG_INIT_EXPLICIT_NAME | CONFIG_INIT_OVERLAY,
+ getconf_str(CNF_CONF));