]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
bugfix
authorTimo Sirainen <tss@iki.fi>
Sun, 27 Apr 2003 00:58:12 +0000 (03:58 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 27 Apr 2003 00:58:12 +0000 (03:58 +0300)
--HG--
branch : HEAD

src/lib-index/maildir/maildir-uidlist.c

index 5b8f194dd763400b4f0c348529e1906b73a6f480..2bb8547a9a60f80eda804e18241662a8941137ed 100644 (file)
@@ -49,8 +49,9 @@ int maildir_uidlist_try_lock(struct mail_index *index)
 
                if (st.st_mtime < ioloop_time - UIDLIST_LOCK_STALE_TIMEOUT) {
                        if (unlink(path) < 0 && errno != ENOENT) {
-                               return index_file_set_syscall_error(index, path,
-                                                                   "unlink()");
+                               index_file_set_syscall_error(index, path,
+                                                            "unlink()");
+                               return -1;
                        }
                        /* try again */
                        continue;