From b1e7bc754b8be7974aea48cb97c5ce866f9b2029 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 25 Mar 2009 15:55:23 -0400 Subject: [PATCH] If unlinking strmap fails because it didn't exist to begin with, don't log an error. --HG-- branch : HEAD --- src/lib-index/mail-index-strmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib-index/mail-index-strmap.c b/src/lib-index/mail-index-strmap.c index 8023a6561c..75e7daa108 100644 --- a/src/lib-index/mail-index-strmap.c +++ b/src/lib-index/mail-index-strmap.c @@ -990,7 +990,7 @@ static int mail_index_strmap_recreate(struct mail_index_strmap_view *view) if (array_count(&view->recs) == 0) { /* everything expunged - just unlink the existing index */ - if (unlink(strmap->path) < 0) + if (unlink(strmap->path) < 0 && errno != ENOENT) mail_index_strmap_set_syscall_error(strmap, "unlink()"); return 0; } -- 2.47.3