Fix typo that caused SUDO_INTERCEPT_FD to overwrite LD_PRELOAD.
This commit is contained in:
@@ -188,7 +188,7 @@ sudo_preload_dso(char *envp[], const char *dso_file, int intercept_fd)
|
|||||||
goto oom;
|
goto oom;
|
||||||
}
|
}
|
||||||
if (intercept_idx != -1) {
|
if (intercept_idx != -1) {
|
||||||
envp[preload_idx] = fdstr;
|
envp[intercept_idx] = fdstr;
|
||||||
} else {
|
} else {
|
||||||
envp[env_len++] = fdstr;
|
envp[env_len++] = fdstr;
|
||||||
envp[env_len] = NULL;
|
envp[env_len] = NULL;
|
||||||
|
Reference in New Issue
Block a user