[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-storage.c, 1.83, 1.84

cras at procontrol.fi cras at procontrol.fi
Sun Jul 4 23:11:06 EEST 2004


Update of /home/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv29935/lib-storage/index/mbox

Modified Files:
	mbox-storage.c 
Log Message:
renaming mailbox under existing mailbox gave wrong error message



Index: mbox-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- mbox-storage.c	24 Jun 2004 14:00:21 -0000	1.83
+++ mbox-storage.c	4 Jul 2004 20:11:04 -0000	1.84
@@ -727,7 +727,11 @@
 		mail_storage_set_error(_storage,
 				       "Target mailbox already exists");
 		return -1;
-	} else if (!ENOTFOUND(errno) && errno != EACCES) {
+	} else if (errno == ENOTDIR) {
+		mail_storage_set_error(_storage,
+			"Target mailbox doesn't allow inferior mailboxes");
+		return -1;
+	} else if (errno != ENOENT && errno != EACCES) {
 		mail_storage_set_critical(_storage, "lstat(%s) failed: %m",
 					  newpath);
 		return -1;



More information about the dovecot-cvs mailing list