[dovecot-cvs] dovecot/src/master auth-process.c,1.67,1.68

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


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

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



Index: auth-process.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/auth-process.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- auth-process.c	21 Oct 2004 02:23:13 -0000	1.67
+++ auth-process.c	22 Oct 2004 13:42:55 -0000	1.68
@@ -217,7 +217,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("Auth process %s not compatible with master "
 				"process (mixed old and new binaries?)",
@@ -269,7 +269,7 @@
 					 FALSE);
 	p->requests = hash_create(default_pool, default_pool, 0, NULL, NULL);
 
-	handshake = t_strdup_printf("VERSION\t%u.%u\n",
+	handshake = t_strdup_printf("VERSION\t%u\t%u\n",
 				    AUTH_MASTER_PROTOCOL_MAJOR_VERSION,
 				    AUTH_MASTER_PROTOCOL_MINOR_VERSION);
 	(void)o_stream_send_str(p->output, handshake);



More information about the dovecot-cvs mailing list