]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
If unlinking strmap fails because it didn't exist to begin with, don't log an error.
authorTimo Sirainen <tss@iki.fi>
Wed, 25 Mar 2009 19:55:23 +0000 (15:55 -0400)
committerTimo Sirainen <tss@iki.fi>
Wed, 25 Mar 2009 19:55:23 +0000 (15:55 -0400)
--HG--
branch : HEAD

src/lib-index/mail-index-strmap.c

index 8023a6561c2df32e72bd5649d27ac5737cbaf6af..75e7daa1089a7a7e8c2881ba0bd32b4c94fcc296 100644 (file)
@@ -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;
        }