From 842526d71fff856b11891d1ae3571e42936a13fa Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 24 Sep 2011 10:24:40 -0400 Subject: [PATCH] Don't error out if the group plugin cannot be loaded, just warn. --- plugins/sudoers/sudoers.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/sudoers/sudoers.c b/plugins/sudoers/sudoers.c index 4adabaac6..36a19f4f5 100644 --- a/plugins/sudoers/sudoers.c +++ b/plugins/sudoers/sudoers.c @@ -207,15 +207,11 @@ sudoers_policy_open(unsigned int version, sudo_conv_t conversation, /* XXX - collect post-sudoers parse settings into a function */ /* - * Initialize external group plugin. + * Initialize external group plugin, if any. */ if (def_group_plugin) { - switch (group_plugin_load(def_group_plugin)) { - case -1: - return -1; - case FALSE: + if (group_plugin_load(def_group_plugin) != TRUE) def_group_plugin = NULL; - } } /* -- 2.40.0