freebsd-ports/net/samba3/files/patch-lib_module.c
Kirill Ponomarev 6fc70a0faf Update to 3.0.9
o Problem updating roaming user profiles.
o Crash in smbd when printing from a Windows 9x client.
o Unresolved symbols in libsmbclient which caused
  applications such as KDE's konqueror to fail when
  accessing smb:// URLs.

PR:		ports/74223
Submitted by:	maintainer
2004-11-23 17:34:51 +00:00

15 lines
501 B
C

--- 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;
}