]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: dbox_cleanup_temp_files() - Fix inverted check for ENOENT
authorMarco Bettini <marco.bettini@open-xchange.com>
Fri, 3 Mar 2023 16:15:17 +0000 (16:15 +0000)
committerMarkus Valentin <markus.valentin@open-xchange.com>
Tue, 25 Apr 2023 07:52:11 +0000 (09:52 +0200)
src/lib-storage/index/dbox-common/dbox-storage.c

index 5cac0d65eaa0958a9494751727a6bfb574ae3cbc..a70f8f3e6f6759b9a16144d8dc03c9723d0c5250 100644 (file)
@@ -191,7 +191,7 @@ dbox_cleanup_temp_files(struct mailbox_list *list, const char *path,
                        struct stat st;
 
                        if (stat(path, &st) < 0) {
-                               if (errno == ENOENT)
+                               if (errno != ENOENT)
                                        i_error("stat(%s) failed: %m", path);
                                return FALSE;
                        }