aboutsummaryrefslogtreecommitdiffstats
path: root/net/samba3/files/patch-lib_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/samba3/files/patch-lib_module.c')
-rw-r--r--net/samba3/files/patch-lib_module.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/samba3/files/patch-lib_module.c b/net/samba3/files/patch-lib_module.c
new file mode 100644
index 000000000000..03cb509895bc
--- /dev/null
+++ b/net/samba3/files/patch-lib_module.c
@@ -0,0 +1,15 @@
+--- lib/module.c.orig Sun Nov 21 00:14:24 2004
++++ lib/module.c Sun Nov 21 00:38:36 2004
+@@ -40,9 +40,11 @@
+ */
+ handle = sys_dlopen(module_name, RTLD_LAZY);
+
++ /* This call should reset any possible non-fatal errors that
++ occured since last call to dl* functions */
++ error = sys_dlerror();
+ if(!handle) {
+ int level = is_probe ? 3 : 0;
+- error = sys_dlerror();
+ DEBUG(level, ("Error loading module '%s': %s\n", module_name, error ? error : ""));
+ return NT_STATUS_UNSUCCESSFUL;
+ }