]> granicus.if.org Git - sudo/commitdiff
Don't error out if the group plugin cannot be loaded, just warn.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 24 Sep 2011 14:24:40 +0000 (10:24 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 24 Sep 2011 14:24:40 +0000 (10:24 -0400)
plugins/sudoers/sudoers.c

index 4adabaac64e1ae9b80b280d143b1ab4f0aaac330..36a19f4f5ef4fa71c9172caa8a5b8133b97d36a0 100644 (file)
@@ -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;
-       }
     }
 
     /*