Work in progress support for sudoedit. The actual interface used by the

plugin for sudoedit is likely to change.
This commit is contained in:
Todd C. Miller
2010-05-13 14:09:21 -04:00
parent d5bfd148d6
commit fdd28d411f
11 changed files with 279 additions and 203 deletions

View File

@@ -418,6 +418,13 @@ parse_args(int argc, char **argv, int *nargc, char ***nargv, char ***settingsp,
}
settings[j] = NULL;
/* Must have the command in argv[0]. */
if (mode == MODE_EDIT) {
argc++;
argv--;
argv[0] = "sudoedit";
}
*settingsp = settings;
*env_addp = env_add;
*nargc = argc;