Skip to content

Commit

Permalink
index: don't try to unlink in-memory cache file
Browse files Browse the repository at this point in the history
Avoid these errors:

Error: unlink((in-memory index).cache) failed: No such file or directory (in mail-cache.c:29)
  • Loading branch information
Josef 'Jeff' Sipek committed Jan 18, 2017
1 parent 91879fb commit fafa639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-index/mail-cache.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit fafa639

Please sign in to comment.