Delay calling the I/O plugin open function until the policy plugin

returns success.
This commit is contained in:
Todd C. Miller
2010-03-28 08:41:06 -04:00
parent 05e8023e78
commit e17f1e5cbd
2 changed files with 15 additions and 14 deletions

View File

@@ -401,7 +401,7 @@ parse_args(int argc, char **argv, int *nargc, char ***nargv, char ***settingsp,
/*
* Format setting_pairs into settings array.
*/
settings = emalloc2(NUM_SETTINGS + 1, sizeof (char *));
settings = emalloc2(NUM_SETTINGS + 1, sizeof(char *));
for (i = 0, j = 0; i < NUM_SETTINGS; i++) {
if (sudo_settings[i].value) {
sudo_debug(9, "settings: %s=%s", sudo_settings[i].name,