]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Check for ENOTEMPTY too for rename() failures.
authorTimo Sirainen <tss@iki.fi>
Mon, 17 Feb 2003 19:09:43 +0000 (21:09 +0200)
committerTimo Sirainen <tss@iki.fi>
Mon, 17 Feb 2003 19:09:43 +0000 (21:09 +0200)
--HG--
branch : HEAD

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

index b2645ff74c8ba567c8d86b127b4e34bffbd20fc7..242cad375873fcd420d47631e9b36a949cb8b404 100644 (file)
@@ -353,7 +353,7 @@ static int maildir_delete_mailbox(struct mail_storage *storage,
 
        count = 0;
        while (rename(src, dest) < 0 && count < 2) {
-               if (errno != EEXIST) {
+               if (errno != EEXIST && errno != ENOTEMPTY) {
                        mail_storage_set_critical(storage,
                                                  "rename(%s, %s) failed: %m",
                                                  src, dest);