dovecot-1.1: Don't show the WhyDoesItNotWork link if auth_debug=...

dovecot at dovecot.org dovecot at dovecot.org
Mon Oct 20 20:00:01 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/51ed91ed4875
changeset: 7957:51ed91ed4875
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Oct 20 19:59:52 2008 +0300
description:
Don't show the WhyDoesItNotWork link if auth_debug=yes already.

diffstat:

1 file changed, 4 insertions(+), 4 deletions(-)
src/master/main.c |    8 ++++----

diffs (29 lines):

diff -r 79982b41b3ed -r 51ed91ed4875 src/master/main.c
--- a/src/master/main.c	Sun Oct 19 14:45:56 2008 +0300
+++ b/src/master/main.c	Mon Oct 20 19:59:52 2008 +0300
@@ -100,12 +100,13 @@ static void fatal_log_check(void)
 		i_error("unlink(%s) failed: %m", path);
 }
 
-static void auth_warning_print(void)
+static void auth_warning_print(const struct server_settings *set)
 {
 	struct stat st;
 
 	auth_success_written = stat(AUTH_SUCCESS_PATH, &st) == 0;
-	if (!auth_success_written) {
+	if (!auth_success_written && !set->auths->debug &&
+	    strcmp(set->defaults->protocols, "none") != 0) {
 		i_info("If you have trouble with authentication failures,\n"
 		       "enable auth_debug setting. "
 		       "See http://wiki.dovecot.org/WhyDoesItNotWork");
@@ -562,8 +563,7 @@ int main(int argc, char *argv[])
 		open_fds();
 
 	fatal_log_check();
-	if (strcmp(settings_root->defaults->protocols, "none") != 0)
-		auth_warning_print();
+	auth_warning_print(settings_root);
 	if (!foreground)
 		daemonize(settings_root->defaults);
 


More information about the dovecot-cvs mailing list