]> granicus.if.org Git - sudo/commitdiff
Actually call shl_load()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 11 Oct 2010 19:19:00 +0000 (15:19 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 11 Oct 2010 19:19:00 +0000 (15:19 -0400)
compat/dlopen.c

index 8217ff57ef7f113553e102509f432f6782451199..38a53b5f2600e8b500d6a4812f68bb5905faa0ab 100644 (file)
@@ -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