From ca0cdd1faf40551094e5d5dd44663aa89509d57c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 23 Nov 2010 18:26:38 +0000 Subject: [PATCH] lib-index: Don't try to stat() in-memory index. --- src/lib-index/mail-transaction-log.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib-index/mail-transaction-log.c b/src/lib-index/mail-transaction-log.c index 5fb8080c26..c6ed70fae2 100644 --- a/src/lib-index/mail-transaction-log.c +++ b/src/lib-index/mail-transaction-log.c @@ -41,6 +41,9 @@ static void mail_transaction_log_2_unlink_old(struct mail_transaction_log *log) { struct stat st; + if (MAIL_INDEX_IS_IN_MEMORY(log->index)) + return; + if (stat(log->filepath2, &st) < 0) { if (errno != ENOENT && errno != ESTALE) { mail_index_set_error(log->index, -- 2.47.3