"cache\n network configuration\n"
"modules\n modules configuration\n"
"kres\n resolver services\n"
+ "trust_anchors\n configure trust anchors\n"
;
lua_pushstring(L, help_str);
return 1;
return kr_error(ENOEXEC);
}
/* Load config file */
+ if (strcmp(config_path, "-") == 0) {
+ return ret; /* No config, no defaults. */
+ }
if(access(config_path, F_OK ) != -1 ) {
ret = l_dosandboxfile(engine->L, config_path);
}
kr_log_error("[system] rundir '%s': %s\n", rundir, strerror(errno));
return EXIT_FAILURE;
}
- if(config && access(config, R_OK) != 0) {
+ if(config && strcmp(config, "-") != 0 && access(config, R_OK) != 0) {
kr_log_error("[system] rundir '%s'\n", rundir);
kr_log_error("[system] config '%s': %s\n", config, strerror(errno));
return EXIT_FAILURE;