Fix typo that caused SUDO_INTERCEPT_FD to overwrite LD_PRELOAD.

This commit is contained in:
Todd C. Miller
2021-08-24 08:51:43 -06:00
parent 1391813443
commit 222d6f94cd

View File

@@ -188,7 +188,7 @@ sudo_preload_dso(char *envp[], const char *dso_file, int intercept_fd)
goto oom;
}
if (intercept_idx != -1) {
envp[preload_idx] = fdstr;
envp[intercept_idx] = fdstr;
} else {
envp[env_len++] = fdstr;
envp[env_len] = NULL;