Use module_path() instead of lib_path() for loading shared modules.
[tprouty/samba.git] / source / lib / module.c
index 2e56e8e8b960097188ac3284f0dcc70f0d8e107b..76983387ffd03e172869edb374969e4d813ad024 100644 (file)
@@ -118,7 +118,7 @@ NTSTATUS smb_probe_module(const char *subsystem, const char *module)
 
        full_path = talloc_asprintf(ctx,
                        "%s/%s.%s",
-                       lib_path(subsystem),
+                       modules_path(subsystem),
                        module,
                        shlib_ext());
        if (!full_path) {