Change how we handle the sudoedit argv. We now require that there

be a "--" in argv to separate the editor and any command line arguments
from the files to be edited.
This commit is contained in:
Todd C. Miller
2010-05-13 17:11:31 -04:00
parent fdd28d411f
commit 7c9c5855fd
4 changed files with 51 additions and 39 deletions

View File

@@ -192,8 +192,7 @@ extern int debug_level;
extern struct plugin_container_list io_plugins;
/* sudo_edit.c */
int sudo_edit(struct command_details *details, char *argv[], char *files[],
char *envp[]);
int sudo_edit(struct command_details *details, char *argv[], char *envp[]);
/* parse_args.c */
void usage(int) __attribute__((__noreturn__));