dovecot-1.2: If unlinking strmap fails because it didn't exist t...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Mar 25 21:55:28 EET 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/b61c15279b65
changeset: 8863:b61c15279b65
user: Timo Sirainen <tss at iki.fi>
date: Wed Mar 25 15:55:23 2009 -0400
description:
If unlinking strmap fails because it didn't exist to begin with, don't log an error.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-index/mail-index-strmap.c | 2 +-
diffs (12 lines):
diff -r 2653007d906d -r b61c15279b65 src/lib-index/mail-index-strmap.c
--- 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 @@ static int mail_index_strmap_recreate(st
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;
}
More information about the dovecot-cvs
mailing list