Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//sudo_1.8.23-9.el7/plugins/sudoers/defaults.c
struct early_default *
is_early_default(const char *name)
{
struct early_default *early;
debug_decl(is_early_default, SUDOERS_DEBUG_DEFAULTS)
for (early = early_defaults; early->idx != -1; early++) {
if (strcmp(name, sudo_defs_table[early->idx].name) == 0)
debug_return_ptr(early);
}
debug_return_ptr(NULL);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment