dovecot-2.0: module_dir_load(): If ignore_dlopen_errors and debu...

dovecot at dovecot.org dovecot at dovecot.org
Fri Aug 6 19:21:57 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/99996236fa51
changeset: 11955:99996236fa51
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Aug 06 17:21:27 2010 +0100
description:
module_dir_load(): If ignore_dlopen_errors and debug is set, still log a debug message about failure.

diffstat:

 src/lib/module-dir.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r e54df5af98ac -r 99996236fa51 src/lib/module-dir.c
--- a/src/lib/module-dir.c	Fri Aug 06 17:05:16 2010 +0100
+++ b/src/lib/module-dir.c	Fri Aug 06 17:21:27 2010 +0100
@@ -170,8 +170,14 @@
 
 	if (set->ignore_dlopen_errors) {
 		handle = quiet_dlopen(path, RTLD_GLOBAL | RTLD_NOW);
-		if (handle == NULL)
+		if (handle == NULL) {
+			if (set->debug) {
+				i_debug("Skipping module %s, "
+					"because dlopen() failed: %s",
+					name, dlerror());
+			}
 			return NULL;
+		}
 	} else {
 		handle = dlopen(path, RTLD_GLOBAL | RTLD_NOW);
 		if (handle == NULL) {


More information about the dovecot-cvs mailing list