I'm just reviewing Petr's sudo rule invalidation patches and when I hit
+ case TYPE_SUDO_RULE:
+ type_string = "sudo_rule";
+#ifdef BUILD_SUDO
+ ret = sysdb_search_sudo_rules(ctx, dinfo,
+ filter, attrs, &msg_count, &msgs);
+#else /* BUILD_SUDO */
+ ret = ENOSYS;
+#endif /* BUILD_SUDO */
+ break;
I though why not remove it anyway. Sudo has grown from experimental
feature to heavily used one so I think we can simply remove the
conditional build. What do you think?