[dovecot-cvs] dovecot/src/auth auth-client-connection.c, 1.21, 1.22 auth-master-connection.c, 1.17, 1.18

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


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

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



Index: auth-client-connection.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-client-connection.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- auth-client-connection.c	19 Oct 2004 15:47:31 -0000	1.21
+++ auth-client-connection.c	22 Oct 2004 13:42:55 -0000	1.22
@@ -370,7 +370,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 client %u "
 				"not compatible with this server "
@@ -439,7 +439,7 @@
 	master->clients = conn;
 
 	str = t_str_new(128);
-	str_printfa(str, "VERSION\t%u.%u\nSPID\t%u\nCUID\t%u\nDONE\n",
+	str_printfa(str, "VERSION\t%u\t%u\nSPID\t%u\nCUID\t%u\nDONE\n",
                     AUTH_CLIENT_PROTOCOL_MAJOR_VERSION,
                     AUTH_CLIENT_PROTOCOL_MINOR_VERSION,
 		    master->pid, conn->connect_uid);

Index: auth-master-connection.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-master-connection.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- auth-master-connection.c	20 Oct 2004 17:49:03 -0000	1.17
+++ auth-master-connection.c	22 Oct 2004 13:42:55 -0000	1.18
@@ -176,7 +176,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_MASTER_PROTOCOL_MAJOR_VERSION) {
 			i_error("Master not compatible with this server "
 				"(mixed old and new binaries?)");
@@ -261,7 +261,7 @@
 void auth_master_connection_send_handshake(struct auth_master_connection *conn)
 {
 	if (conn->output != NULL) {
-		master_send(conn, "VERSION\t%u.%u\nSPID\t%u\n",
+		master_send(conn, "VERSION\t%u\t%u\nSPID\t%u\n",
 			    AUTH_MASTER_PROTOCOL_MAJOR_VERSION,
                             AUTH_MASTER_PROTOCOL_MINOR_VERSION, conn->pid);
 	}



More information about the dovecot-cvs mailing list