From 1464c2a966d1afbe36e7c96bacffb5d5b44c3350 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 23 Apr 2003 19:51:48 +0300 Subject: [PATCH] Compile fix --HG-- branch : HEAD --- src/lib-index/mail-index-open.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib-index/mail-index-open.c b/src/lib-index/mail-index-open.c index b1ef18b7b8..2f21afdafa 100644 --- a/src/lib-index/mail-index-open.c +++ b/src/lib-index/mail-index-open.c @@ -130,7 +130,8 @@ static int index_open_and_fix(struct mail_index *index, if (!rebuilt) { /* sync ourself. do it before updating cache and compression which may happen because of this. */ - if (!index->sync_and_lock(index, MAIL_LOCK_SHARED, NULL)) + if (!index->sync_and_lock(index, MAIL_LOCK_SHARED, NULL) && + !index->nodiskspace) return FALSE; index->inconsistent = FALSE; @@ -286,7 +287,7 @@ static int mail_index_create_memory(struct mail_index *index, index->mmap_full_length = INDEX_FILE_MIN_SIZE; index->mmap_base = mmap_anon(index->mmap_full_length); if (index->mmap_base == MAP_FAILED) - return index_file_set_syscall_error(index, path, "mmap_anon()"); + return index_set_error(index, "mmap_anon() failed: %m"); mail_index_init_header(index, index->mmap_base); index->header = index->mmap_base; -- 2.47.3