dovecot-2.2: director: UNIX auth sockets were wrongly detected a...

dovecot at dovecot.org dovecot at dovecot.org
Thu May 14 08:28:01 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/cc6b6d7c1574
changeset: 18687:cc6b6d7c1574
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 14 11:26:00 2015 +0300
description:
director: UNIX auth sockets were wrongly detected as doveadm or ring sockets.
A workaround would be to use login/director-auth socket name instead of
login/director.

diffstat:

 src/director/main.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 041b6b9921c5 -r cc6b6d7c1574 src/director/main.c
--- a/src/director/main.c	Wed May 13 21:35:56 2015 +0300
+++ b/src/director/main.c	Thu May 14 11:26:00 2015 +0300
@@ -99,7 +99,8 @@
 {
 	unsigned int local_port;
 
-	if (net_getsockname(listen_fd, NULL, &local_port) == 0) {
+	if (net_getsockname(listen_fd, NULL, &local_port) == 0 &&
+	    local_port != 0) {
 		/* TCP/IP connection */
 		if (local_port == set->director_doveadm_port)
 			return DIRECTOR_SOCKET_TYPE_DOVEADM;


More information about the dovecot-cvs mailing list