From de6853848727470b9db6b7eddfdc576e01b8fb0d Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 11 Oct 2010 15:19:00 -0400 Subject: [PATCH] Actually call shl_load() --- compat/dlopen.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/compat/dlopen.c b/compat/dlopen.c index 8217ff57e..38a53b5f2 100644 --- a/compat/dlopen.c +++ b/compat/dlopen.c @@ -52,19 +52,17 @@ void * dlopen(const char *path, int mode) { int flags = DYNAMIC_PATH; - shl_t handle; if (mode == 0) mode = RTLD_LAZY; /* default behavior */ + /* We don't support RTLD_GLOBAL or RTLD_LOCAL yet. */ if (ISSET(mode, RTLD_LAZY)) flags |= BIND_DEFERRED if (ISSET(mode, RTLD_NOW)) flags |= BIND_IMMEDIATE - /* We don't support RTLD_GLOBAL or RTLD_LOCAL yet. */ - - return (void *)handle; + return (void *)shl_load(path, flags, 0); } int -- 2.40.0