Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8863:b61c15279b65 HEAD
If unlinking strmap fails because it didn't exist to begin with, don't log an error.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 25 Mar 2009 15:55:23 -0400 |
parents | 2653007d906d |
children | 84c70b0695c5 |
files | src/lib-index/mail-index-strmap.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-strmap.c Wed Mar 25 15:52:52 2009 -0400 +++ b/src/lib-index/mail-index-strmap.c Wed Mar 25 15:55:23 2009 -0400 @@ -990,7 +990,7 @@ 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; }