Cyril Bonté found that when an error is detected in one config file, it
is also reported in all other ones, which is wrong. The fix obviously
consists in checking the return code from readcfgfile() and not the
accumulator.
cfg_cfgfile[i], strerror(errno));
exit(1);
}
- err_code |= ret;
- if (err_code & (ERR_ABORT|ERR_FATAL))
+ if (ret & (ERR_ABORT|ERR_FATAL))
Alert("Error(s) found in configuration file : %s\n", cfg_cfgfile[i]);
+ err_code |= ret;
if (err_code & ERR_ABORT)
exit(1);
}