From: Timo Sirainen Date: Wed, 25 Mar 2009 19:55:23 +0000 (-0400) Subject: If unlinking strmap fails because it didn't exist to begin with, don't log an error. X-Git-Tag: 1.2.beta4~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1e7bc754b8be7974aea48cb97c5ce866f9b2029;p=thirdparty%2Fdovecot%2Fcore.git If unlinking strmap fails because it didn't exist to begin with, don't log an error. --HG-- branch : HEAD --- 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; }