]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Don't try to stat() in-memory index.
authorTimo Sirainen <tss@iki.fi>
Tue, 23 Nov 2010 18:26:38 +0000 (18:26 +0000)
committerTimo Sirainen <tss@iki.fi>
Tue, 23 Nov 2010 18:26:38 +0000 (18:26 +0000)
src/lib-index/mail-transaction-log.c

index 5fb8080c26c7b93115ff05e86c42c3e2ad77e002..c6ed70fae29ebe19f019d6dc2bd95850949061ed 100644 (file)
@@ -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,