commit 48b69cb2dcb0e50409c531d9052c2da134a82eff from: Omar Polo date: Wed Apr 28 12:43:17 2021 UTC fix some logging - we can't use log_* or fatal() before logger_init - err -> errx if errno isn't involved commit - d89a9060f812301850ae4c3f975d475e31fba0a7 commit + 48b69cb2dcb0e50409c531d9052c2da134a82eff blob - 710067347fa1aeb0c8d66d39101c605712e7b80f blob + 7e221f5fa728a7c2cd11fc7a07ca7bc8d6903b11 --- gmid.c +++ gmid.c @@ -545,7 +545,7 @@ main(int argc, char **argv) } if (config_path != NULL && (argc > 0 || configless)) - err(1, "can't specify options in config mode."); + errx(1, "can't specify options in config mode."); if (conftest) { parse_conf(config_path); blob - df62e818a863060518cbedc4ddf7489bfdac2ff9 blob + cc9c99868be28cf14097905ff591a7635922a607 --- parse.y +++ parse.y @@ -260,7 +260,7 @@ parse_conf(const char *path) { config_path = path; if ((yyin = fopen(path, "r")) == NULL) - fatal("cannot open config: %s: %s", path, strerror(errno)); + err(1, "cannot open config: %s", path); yyparse(); fclose(yyin); @@ -268,7 +268,7 @@ parse_conf(const char *path) exit(1); if (TAILQ_FIRST(&hosts)->domain == NULL) - fatal("no vhost defined in %s", path); + errx(1, "no vhost defined in %s", path); } char *