]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Removed all traces of auth-success file checking.
authorTimo Sirainen <tss@iki.fi>
Tue, 10 Nov 2009 01:46:57 +0000 (20:46 -0500)
committerTimo Sirainen <tss@iki.fi>
Tue, 10 Nov 2009 01:46:57 +0000 (20:46 -0500)
The file no longer got written after pre/post-login process redesign and
maybe it's too much trouble to get it back.

--HG--
branch : HEAD

src/master/common.h
src/master/main.c

index ee365bf18ec531f94047c8d42a315b05f881630b..ff01b0c33ae882c2e0e8a6265e68ee850ba990b3 100644 (file)
@@ -5,11 +5,8 @@
 #include "master-interface.h"
 #include "master-settings.h"
 
-#define AUTH_SUCCESS_PATH PKG_STATEDIR"/auth-success"
-
 extern uid_t master_uid;
 extern gid_t master_gid;
-extern bool auth_success_written;
 extern bool core_dumps_disabled;
 extern char ssl_manual_key_password[];
 extern int null_fd;
index 00f2c58db0e13e32cf2a056211e10cd70d7caba9..8d2c1bb92aa31bae131e0a9c24a49a75fad3b422 100644 (file)
@@ -38,7 +38,6 @@
 struct master_service *master_service;
 uid_t master_uid;
 gid_t master_gid;
-bool auth_success_written;
 bool core_dumps_disabled;
 char ssl_manual_key_password[100];
 int null_fd;
@@ -201,19 +200,6 @@ static void fatal_log_check(const struct master_settings *set)
                i_error("unlink(%s) failed: %m", path);
 }
 
-static void auth_warning_print(const struct master_settings *set)
-{
-       struct stat st;
-
-       auth_success_written = stat(AUTH_SUCCESS_PATH, &st) == 0;
-       if (!auth_success_written && !set->auth_debug) {
-               fprintf(stderr,
-"If you have trouble with authentication failures,\n"
-"enable auth_debug setting. See http://wiki.dovecot.org/WhyDoesItNotWork\n"
-"This message goes away after the first successful login.\n");
-       }
-}
-
 static bool pid_file_read(const char *path, pid_t *pid_r)
 {
        char buf[32];
@@ -729,7 +715,6 @@ int main(int argc, char *argv[])
                pid_file_check_running(pidfile_path);
                master_settings_do_fixes(set);
                fatal_log_check(set);
-               auth_warning_print(set);
        }
 
        /* save TZ environment. AIX depends on it to get the timezone