[dovecot-cvs] dovecot/src/plugins/fts-squat squat-uidlist.c, 1.6, 1.7

tss at dovecot.org tss at dovecot.org
Sat Dec 9 23:58:14 UTC 2006


Update of /var/lib/cvs/dovecot/src/plugins/fts-squat
In directory talvi:/tmp/cvs-serv20910

Modified Files:
	squat-uidlist.c 
Log Message:
Don't break if we indexed only one message.



Index: squat-uidlist.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/fts-squat/squat-uidlist.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- squat-uidlist.c	9 Dec 2006 23:18:58 -0000	1.6
+++ squat-uidlist.c	9 Dec 2006 23:58:12 -0000	1.7
@@ -678,8 +678,10 @@
 	uidlist->write_failed = FALSE;
 	uidlist->current_uid = 0;
 
-	if (squat_uidlist_map(uidlist) <= 0)
-		ret = -1;
+	if (uidlist->fd != -1) {
+		if (squat_uidlist_map(uidlist) <= 0)
+			ret = -1;
+	}
 	return ret;
 }
 



More information about the dovecot-cvs mailing list