[dovecot-cvs] dovecot/src/auth auth-request.c,1.23,1.24

cras at dovecot.org cras at dovecot.org
Tue Jun 14 13:29:03 EEST 2005


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv31730

Modified Files:
	auth-request.c 
Log Message:
If username changes, log the change if debugging is enabled.



Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- auth-request.c	28 May 2005 12:34:24 -0000	1.23
+++ auth-request.c	14 Jun 2005 10:29:01 -0000	1.24
@@ -456,7 +456,12 @@
 
 	if (strcmp(name, "user") == 0) {
 		/* update username to be exactly as it's in database */
-		request->user = p_strdup(request->pool, value);
+		if (strcmp(request->user, value) != 0) {
+			auth_request_log_debug(request, "auth",
+				"username changed %s -> %s",
+				request->user, value);
+			request->user = p_strdup(request->pool, value);
+		}
 		return;
 	}
 



More information about the dovecot-cvs mailing list