30 #include "cmdhandler.h" 34 #include "clientpipe.h" 41 static const char *module_str =
"update_conf_cmd";
54 "Update the configuration from conf.xml and reload the Enforcer.\n\n" 59 run(
int sockfd, cmdhandler_ctx_type* context,
const char *cmd)
62 char *zonelist = NULL;
63 char **repositories = NULL;
64 int repository_count = 0;
73 client_printf_err(sockfd,
"Unable to validate '%s' consistency.",
79 for (i = 0; i < repository_count; i++) {
80 free(repositories[i]);
90 for (i = 0; i < repository_count; i++) {
91 free(repositories[i]);
103 "update conf", &usage, &help, NULL, &run
const char * cfg_filename
int check_conf(const char *conf, char **kasp, char **zonelist, char ***repo_listout, int *repo_countout, int verbose)
struct cmd_func_block update_conf_funcblock
engine_type * getglobalcontext(cmdhandler_ctx_type *context)
pthread_cond_t signal_cond
db_connection_t * getconnectioncontext(cmdhandler_ctx_type *context)
engineconfig_type * config