]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Catch dotlock creation timeout error.
authorTimo Sirainen <tss@iki.fi>
Thu, 6 Mar 2008 07:44:24 +0000 (09:44 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 6 Mar 2008 07:44:24 +0000 (09:44 +0200)
--HG--
branch : HEAD

src/lib-index/mail-cache.c

index 970255fe63d6a304c1bb326d249a9f38973930c4..e6231002ffa52260e5ae5d2ff08ae1052b267ccf 100644 (file)
@@ -474,7 +474,7 @@ static int mail_cache_lock_file(struct mail_cache *cache)
                i_assert(cache->dotlock == NULL);
                ret = file_dotlock_create(&cache->dotlock_settings,
                                          cache->filepath, 0, &cache->dotlock);
-               if (ret < 0) {
+               if (ret <= 0) {
                        mail_cache_set_syscall_error(cache,
                                                     "file_dotlock_create()");
                }