From: Josef 'Jeff' Sipek Date: Wed, 18 Jan 2017 09:46:15 +0000 (-0500) Subject: index: don't try to unlink in-memory cache file X-Git-Tag: 2.3.0.rc1~2292 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fafa6393128960c70a9979af1c23cea41027fdd1;p=thirdparty%2Fdovecot%2Fcore.git index: don't try to unlink in-memory cache file Avoid these errors: Error: unlink((in-memory index).cache) failed: No such file or directory (in mail-cache.c:29) --- diff --git a/src/lib-index/mail-cache.c b/src/lib-index/mail-cache.c index 5de3b502d7..67b65d8722 100644 --- a/src/lib-index/mail-cache.c +++ b/src/lib-index/mail-cache.c @@ -25,7 +25,7 @@ void mail_cache_set_syscall_error(struct mail_cache *cache, static void mail_cache_unlink(struct mail_cache *cache) { - if (!cache->index->readonly) + if (!cache->index->readonly && !MAIL_INDEX_IS_IN_MEMORY(cache->index)) i_unlink(cache->filepath); }