[dovecot-cvs] dovecot/src/lib-auth auth-server-connection.c, 1.10, 1.11

cras at dovecot.org cras at dovecot.org
Fri Oct 22 16:42:57 EEST 2004


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

Modified Files:
	auth-server-connection.c 
Log Message:
Separate major/minor version with TAB instead of dot in VERSION.



Index: auth-server-connection.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-auth/auth-server-connection.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- auth-server-connection.c	19 Oct 2004 00:51:21 -0000	1.10
+++ auth-server-connection.c	22 Oct 2004 13:42:55 -0000	1.11
@@ -147,7 +147,7 @@
 
 		/* make sure the major version matches */
 		if (strncmp(line, "VERSION\t", 8) != 0 ||
-		    atoi(t_strcut(line + 8, '.')) !=
+		    atoi(t_strcut(line + 8, '\t')) !=
 		    AUTH_CLIENT_PROTOCOL_MAJOR_VERSION) {
 			i_error("Authentication server not compatible with "
 				"this client (mixed old and new binaries?)");
@@ -227,7 +227,7 @@
 	conn->next = client->connections;
 	client->connections = conn;
 
-	handshake = t_strdup_printf("VERSION\t%u.%u\nCPID\t%u\n",
+	handshake = t_strdup_printf("VERSION\t%u\t%u\nCPID\t%u\n",
 				    AUTH_CLIENT_PROTOCOL_MAJOR_VERSION,
                                     AUTH_CLIENT_PROTOCOL_MINOR_VERSION,
 				    client->pid);



More information about the dovecot-cvs mailing list