2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Update Defaults settings after parsing sudoers.

Also stub out dump_defaults when fuzzing as it is not used.
This commit is contained in:
Todd C. Miller
2021-02-24 12:29:34 -07:00
parent 33551acd1f
commit cbd11c44d2
4 changed files with 8 additions and 1 deletions

View File

@@ -81,6 +81,7 @@ static bool valid_path(struct sudo_defs_types *def, const char *val, const char
void
dump_defaults(void)
{
#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
struct sudo_defs_types *cur;
struct list_member *item;
struct def_values *def;
@@ -164,6 +165,7 @@ dump_defaults(void)
}
}
debug_return;
#endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
}
/*