[dovecot-cvs] dovecot/src/lib-index mail-index-fsck.c,1.24,1.25

cras at dovecot.org cras at dovecot.org
Sat Dec 4 23:56:21 EET 2004


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

Modified Files:
	mail-index-fsck.c 
Log Message:
If index is completely broken, don't try to fsck it since we'll just crash.



Index: mail-index-fsck.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-fsck.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- mail-index-fsck.c	7 Nov 2004 18:55:15 -0000	1.24
+++ mail-index-fsck.c	4 Dec 2004 21:56:19 -0000	1.25
@@ -127,7 +127,7 @@
 
 	error = NULL;
 	ret = mail_index_map(index, FALSE);
-	if (ret >= 0)
+	if (ret > 0)
 		ret = mail_index_fsck_locked(index, &error);
 
 	mail_index_unlock(index, lock_id);



More information about the dovecot-cvs mailing list