Remove format_env()

Add sudo_setenv() to replace most format_env() + insert_env() combinations.
insert_env() no longer takes a struct environment *
This commit is contained in:
Todd C. Miller
2007-07-15 19:41:10 +00:00
parent 8cb8c55f94
commit d1f6bdbcff
2 changed files with 68 additions and 92 deletions

1
sudo.h
View File

@@ -262,6 +262,7 @@ int gettime __P((struct timespec *));
FILE *open_sudoers __P((const char *, int *));
void display_privs __P((VOID *, struct passwd *));
int display_cmnd __P((VOID *, struct passwd *));
void sudo_setenv __P((const char *, const char *, int));
void sudo_setgrent __P((void));
void sudo_endgrent __P((void));
void sudo_setpwent __P((void));