Mercurial > dovecot > core-2.2
changeset 19390:fa46e882e8bf
pop3: When creating session lock file, prefer to write it to the index root dir.
This is especially important for mail storage backends that don't have a mail
root directory.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 18 Nov 2015 13:12:23 +0200 |
parents | 5528fd720619 |
children | f78c312bc5a9 |
files | src/pop3/pop3-client.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pop3/pop3-client.c Wed Nov 18 13:08:57 2015 +0200 +++ b/src/pop3/pop3-client.c Wed Nov 18 13:12:23 2015 +0200 @@ -339,9 +339,9 @@ int ret; if (!mailbox_list_get_root_path(client->inbox_ns->list, - MAILBOX_LIST_PATH_TYPE_DIR, &dir) && + MAILBOX_LIST_PATH_TYPE_INDEX, &dir) && !mailbox_list_get_root_path(client->inbox_ns->list, - MAILBOX_LIST_PATH_TYPE_INDEX, &dir)) { + MAILBOX_LIST_PATH_TYPE_DIR, &dir)) { i_error("pop3_lock_session: Storage has no root/index directory, " "can't create a POP3 session lock file"); return -1;