Created
July 6, 2021 10:30
-
-
Save saidelike/301aa32078fbcfdcc6a02ec8ffde1221 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//sudo_1.8.23-9.el7/plugins/sudoers/defaults.c | |
bool | |
update_defaults(int what, bool quiet) | |
{ | |
struct defaults *d; | |
... | |
/* | |
* Then set the rest of the defaults. | |
*/ | |
TAILQ_FOREACH(d, &defaults, entries) { | |
... | |
/* Copy the value to sudo_defs_table and run callback (if any) */ | |
if (!set_default(d->var, d->val, d->op, d->file, d->lineno, quiet)) | |
ret = false; | |
} | |
debug_return_bool(ret); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment