the ecs reply expires.
- Add unit tests for cachedb and subnet cache expired data.
+26 April 2024: Yorgos
+ - Fix #876: [FR] can unbound-checkconf be silenced when configuration
+ is valid?
+
25 April 2024: Wouter
- Fix configure flto check error, by finding grep for it.
- Merge #1041: Stub and Forward unshare. This has one structure
printf("file if omitted %s is used.\n", CONFIGFILE);
printf("-o option print value of option to stdout.\n");
printf("-f output full pathname with chroot applied, eg. with -o pidfile.\n");
+ printf("-q quiet (suppress output on success).\n");
printf("-h show this usage help.\n");
printf("Version %s\n", PACKAGE_VERSION);
printf("BSD licensed, see LICENSE in source package for details.\n");
/** check config file */
static void
-checkconf(const char* cfgfile, const char* opt, int final)
+checkconf(const char* cfgfile, const char* opt, int final, int quiet)
{
char oldwd[4096];
struct config_file* cfg = config_create();
check_fwd(cfg);
check_hints(cfg);
check_auth(cfg);
- printf("unbound-checkconf: no errors in %s\n", cfgfile);
+ if(!quiet) { printf("unbound-checkconf: no errors in %s\n", cfgfile); }
config_delete(cfg);
}
{
int c;
int final = 0;
+ int quiet = 0;
const char* f;
const char* opt = NULL;
const char* cfgfile = CONFIGFILE;
cfgfile = CONFIGFILE;
#endif /* USE_WINSOCK */
/* parse the options */
- while( (c=getopt(argc, argv, "fho:")) != -1) {
+ while( (c=getopt(argc, argv, "fhqo:")) != -1) {
switch(c) {
case 'f':
final = 1;
case 'o':
opt = optarg;
break;
+ case 'q':
+ quiet = 1;
+ break;
case '?':
case 'h':
default:
if(argc == 1)
f = argv[0];
else f = cfgfile;
- checkconf(f, opt, final);
+ checkconf(f, opt, final, quiet);
checklock_stop();
return 0;
}