Fix compilation when configure option --disable-shared is specified.

This commit is contained in:
Todd C. Miller
2021-08-09 16:39:32 -06:00
parent aa20eccad4
commit abac069566

View File

@@ -71,9 +71,9 @@ disable_execute(char *envp[], const char *dso)
static char **
enable_intercept(char *envp[], const char *dso, int intercept_fd)
{
#ifdef RTLD_PRELOAD_VAR
debug_decl(enable_intercept, SUDO_DEBUG_UTIL);
#ifdef RTLD_PRELOAD_VAR
if (dso == NULL)
sudo_fatalx("%s: missing DSO", __func__);
if (intercept_fd == -1)