dovecot-1.2: mbox: Yet another mbox locking error message fix.

dovecot at dovecot.org dovecot at dovecot.org
Fri Feb 27 01:47:06 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/dbf2730f76f2
changeset: 8793:dbf2730f76f2
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Feb 26 18:47:01 2009 -0500
description:
mbox: Yet another mbox locking error message fix.

diffstat:

1 file changed, 4 insertions(+), 1 deletion(-)
src/lib-storage/index/mbox/mbox-lock.c |    5 ++++-

diffs (15 lines):

diff -r 75aed0ddfcb1 -r dbf2730f76f2 src/lib-storage/index/mbox/mbox-lock.c
--- a/src/lib-storage/index/mbox/mbox-lock.c	Thu Feb 26 18:45:50 2009 -0500
+++ b/src/lib-storage/index/mbox/mbox-lock.c	Thu Feb 26 18:47:01 2009 -0500
@@ -370,7 +370,10 @@ mbox_dotlock_log_eacces_error(struct mbo
 	errmsg = eacces_error_get_creating("file_dotlock_create", path);
 	dir = strrchr(path, '/');
 	dir = dir == NULL ? "." : t_strdup_until(path, dir);
-	if (!mbox->mbox_privileged_locking) {
+	if (strcmp(mbox->ibox.box.name, "INBOX") != 0) {
+		mail_storage_set_critical(&mbox->storage->storage,
+			"%s (not INBOX -> no privileged locking)", errmsg);
+	} else if (!mbox->mbox_privileged_locking) {
 		dir = mailbox_list_get_path(mbox->storage->storage.list, NULL,
 					    MAILBOX_LIST_PATH_TYPE_DIR);
 		mail_storage_set_critical(&mbox->storage->storage,


More information about the dovecot-cvs mailing list