if (ret < 0)
;
- else if (ctx->hide_errors)
- ret = 0;
else if ((ret = config_all_parsers_check(ctx, new_filter, &error)) < 0) {
*error_r = t_strdup_printf("Error in configuration file %s: %s",
ctx->path, error);
i_zero(&ctx);
ctx.pool = pool_alloconly_create(MEMPOOL_GROWING"config file parser", 1024*256);
ctx.path = path;
- ctx.hide_errors = fd == -1 ||
- (flags & CONFIG_PARSE_FLAG_HIDE_ERRORS) != 0;
ctx.delay_errors = (flags & CONFIG_PARSE_FLAG_DELAY_ERRORS) != 0;
for (count = 0; all_roots[count] != NULL; count++) ;
bool simple_output = FALSE;
bool dump_defaults = FALSE, host_verify = FALSE, dump_full = FALSE;
bool print_plugin_banner = FALSE, hide_passwords = TRUE;
- bool disable_check_settings = FALSE;
if (getenv("USE_SYSEXITS") != NULL) {
/* we're coming from (e.g.) LDA */
i_zero(&filter);
master_service = master_service_init("config", master_service_flags,
- &argc, &argv, "adEf:FhHm:nNpPexsS");
+ &argc, &argv, "adf:FhHm:nNpPexsS");
orig_config_path = t_strdup(master_service_get_config_path(master_service));
i_set_failure_prefix("doveconf: ");
case 'd':
dump_defaults = TRUE;
break;
- case 'E':
- disable_check_settings = TRUE;
- break;
case 'f':
filter_parse_arg(&filter, optarg);
break;
enum config_parse_flags flags = 0;
if (expand_vars)
flags |= CONFIG_PARSE_FLAG_EXPAND_VALUES;
- if (disable_check_settings)
- flags |= CONFIG_PARSE_FLAG_HIDE_ERRORS;
if (dump_full && exec_args != NULL)
flags |= CONFIG_PARSE_FLAG_DELAY_ERRORS;
if ((ret = config_parse_file(dump_defaults ? NULL : config_path,
if ((ret == -1 && exec_args != NULL) || ret == 0 || ret == -2)
i_fatal("%s", error);
- enum config_dump_flags dump_flags = disable_check_settings ? 0 :
- CONFIG_DUMP_FLAG_CHECK_SETTINGS;
+ enum config_dump_flags dump_flags = CONFIG_DUMP_FLAG_CHECK_SETTINGS;
if (dump_full && exec_args == NULL) {
ret2 = config_dump_full(CONFIG_DUMP_FULL_DEST_STDOUT,
dump_flags,