Mercurial > dovecot > original-hg > dovecot-1.2
changeset 2278:675ef825829e HEAD
renaming mailbox under existing mailbox gave wrong error message
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 04 Jul 2004 23:11:04 +0300 |
parents | 41e56f28d085 |
children | ed0bb4c12f03 |
files | src/lib-storage/index/mbox/mbox-storage.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-storage.c Sun Jul 04 23:00:47 2004 +0300 +++ b/src/lib-storage/index/mbox/mbox-storage.c Sun Jul 04 23:11:04 2004 +0300 @@ -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;