[dovecot-cvs] dovecot/src/lib-index mail-index.c,1.224,1.225

cras at dovecot.org cras at dovecot.org
Sat Feb 25 12:19:20 EET 2006


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv5971

Modified Files:
	mail-index.c 
Log Message:
mail_index_open(): If index is already open, return 1 instead of 0 so the
caller won't think it failed..



Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.224
retrieving revision 1.225
diff -u -d -r1.224 -r1.225
--- mail-index.c	24 Feb 2006 12:26:21 -0000	1.224
+++ mail-index.c	25 Feb 2006 10:19:18 -0000	1.225
@@ -1489,7 +1489,7 @@
 			/* corrupted, reopen files */
                         mail_index_close(index);
 		} else {
-			return 0;
+			return 1;
 		}
 	}
 



More information about the dovecot-cvs mailing list