From: Timo Sirainen Date: Wed, 14 May 2003 18:37:07 +0000 (+0300) Subject: mboxes were always selected read-only X-Git-Tag: 1.1.alpha1~4636 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2456aa428aadff7e7137e40dc5613e9ad0ded87f;p=thirdparty%2Fdovecot%2Fcore.git mboxes were always selected read-only --HG-- branch : HEAD --- diff --git a/src/lib-index/mbox/mbox-index.c b/src/lib-index/mbox/mbox-index.c index bf80edc169..9ca6db9eac 100644 --- a/src/lib-index/mbox/mbox-index.c +++ b/src/lib-index/mbox/mbox-index.c @@ -756,7 +756,7 @@ struct mail_index *mbox_index_alloc(const char *dir, const char *mbox_path) index->mbox_fd = -1; index->mbox_sync_counter = (unsigned int)-1; - index->mailbox_readonly = access(index->mailbox_path, W_OK) < 0; + index->mailbox_readonly = access(mbox_path, W_OK) < 0; index->mailbox_path = i_strdup(mbox_path); mail_index_init(index, dir);