changeset 12262:80a080814041

lib-index: Mailbox log writing was trying to write to a closed log file fd.
author Timo Sirainen <tss@iki.fi>
date Thu, 14 Oct 2010 16:17:43 +0100
parents f451ffa51772
children 03ac8057710d
files src/lib-index/mailbox-log.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mailbox-log.c	Thu Oct 14 15:59:11 2010 +0100
+++ b/src/lib-index/mailbox-log.c	Thu Oct 14 16:17:43 2010 +0100
@@ -67,6 +67,7 @@
 	if (log->fd != -1) {
 		if (close(log->fd) < 0)
 			i_error("close(%s) failed: %m", log->filepath);
+		log->fd = -1;
 	}
 }