From: Todd C. Miller Date: Wed, 31 Mar 2010 09:42:58 +0000 (-0400) Subject: Load the sudoers I/O plugin by default too now that it is hooked up. X-Git-Tag: SUDO_1_8_0~761 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c71d6afa4c1042f5baab046c61b091fedc1b056;p=sudo Load the sudoers I/O plugin by default too now that it is hooked up. --- diff --git a/src/load_plugins.c b/src/load_plugins.c index 496ed79aa..22ff79dd4 100644 --- a/src/load_plugins.c +++ b/src/load_plugins.c @@ -58,14 +58,22 @@ sudo_read_conf(const char *conf_file) static struct plugin_info_list pil; /* XXX */ if ((fp = fopen(conf_file, "r")) == NULL) { - /* Default values */ + /* Default policy plugin */ info = emalloc(sizeof(*info)); info->symbol_name = "sudoers_policy"; info->path = SUDOERS_PLUGIN; info->prev = info; info->next = NULL; tq_append(&pil, info); - /* XXX - io plugin too */ + + /* Default I/O plugin */ + info = emalloc(sizeof(*info)); + info->symbol_name = "sudoers_io"; + info->path = SUDOERS_PLUGIN; + info->prev = info; + info->next = NULL; + tq_append(&pil, info); + goto done; }