Refactor code to set LD_PRELOAD (or the equivalent) in the environment

into a preload_dso() function.  Also avoid allocating a new copy
of the environment array if the size of the array does not change.
This commit is contained in:
Todd C. Miller
2015-12-16 15:08:01 -07:00
parent 3b338830cf
commit 4536480800
2 changed files with 67 additions and 50 deletions

View File

@@ -74,7 +74,7 @@
/* exec.c */
struct sudo_event_base;
int sudo_execve(const char *path, char *const argv[], char *const envp[], bool noexec);
int sudo_execve(const char *path, char *const argv[], char *envp[], bool noexec);
extern volatile pid_t cmnd_pid;
/* exec_pty.c */