dovecot-2.2: fts-lucene: Compile fix for previous unlink_directo...

dovecot at dovecot.org dovecot at dovecot.org
Mon Oct 8 00:49:11 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/e63a281eeff9
changeset: 15192:e63a281eeff9
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Oct 08 00:48:55 2012 +0300
description:
fts-lucene: Compile fix for previous unlink_directory() change

diffstat:

 src/plugins/fts-lucene/lucene-wrapper.cc |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r b9cb9c3cdfdc -r e63a281eeff9 src/plugins/fts-lucene/lucene-wrapper.cc
--- a/src/plugins/fts-lucene/lucene-wrapper.cc	Mon Oct 08 00:00:55 2012 +0300
+++ b/src/plugins/fts-lucene/lucene-wrapper.cc	Mon Oct 08 00:48:55 2012 +0300
@@ -238,7 +238,9 @@
 	     err.number() == CL_ERR_IO)) {
 		/* delete corrupted index. most IO errors are also about
 		   missing files and other such corruption.. */
-		if (unlink_directory(index->path, TRUE) < 0 && errno != ENOENT)
+		if (unlink_directory(index->path,
+				     UNLINK_DIRECTORY_FLAG_RMDIR) < 0 &&
+		    errno != ENOENT)
 			i_error("unlink_directory(%s) failed: %m", index->path);
 		rescan_clear_unseen_mailboxes(index, NULL);
 	}
@@ -361,7 +363,7 @@
 		return ret;
 
 	/* settings changed, rebuild index */
-	if (unlink_directory(index->path, TRUE) < 0) {
+	if (unlink_directory(index->path, UNLINK_DIRECTORY_FLAG_RMDIR) < 0) {
 		i_error("unlink_directory(%s) failed: %m", index->path);
 		ret = -1;
 	} else {


More information about the dovecot-cvs mailing list