"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib-storage/list/mailbox-list-index-backend.c" between
dovecot-2.3.16.tar.gz and dovecot-2.3.17.tar.gz

About: Dovecot is an IMAP and POP3 server, written with security primarily in mind.

mailbox-list-index-backend.c  (dovecot-2.3.16):mailbox-list-index-backend.c  (dovecot-2.3.17)
skipping to change at line 457 skipping to change at line 457
MAILBOX_LIST_PATH_TYPE_MAILBOX, MAILBOX_LIST_PATH_TYPE_MAILBOX,
&old_path) <= 0) &old_path) <= 0)
old_path = NULL; old_path = NULL;
if (ibox->module_ctx.super.update_box(box, update) < 0) if (ibox->module_ctx.super.update_box(box, update) < 0)
return -1; return -1;
/* rename the directory */ /* rename the directory */
if (!guid_128_is_empty(update->mailbox_guid) && old_path != NULL && if (!guid_128_is_empty(update->mailbox_guid) && old_path != NULL &&
mailbox_list_set_get_root_path(&box->list->set, mailbox_list_set_get_root_path(&box->list->set,
MAILBOX_LIST_PATH_TYPE_MAILBOX, MAILBOX_LIST_PATH_TYPE_DIR,
&root_dir)) { &root_dir)) {
new_path = index_get_guid_path(box->list, root_dir, new_path = index_get_guid_path(box->list, root_dir,
update->mailbox_guid); update->mailbox_guid);
if (strcmp(old_path, new_path) == 0) if (strcmp(old_path, new_path) == 0)
; ;
else if (rename(old_path, new_path) == 0) else if (rename(old_path, new_path) == 0)
; ;
else if (errno == ENOENT) { else if (errno == ENOENT) {
mail_storage_set_error(box->storage, MAIL_ERROR_NOTFOUND, mail_storage_set_error(box->storage, MAIL_ERROR_NOTFOUND,
T_MAIL_ERR_MAILBOX_NOT_FOUND(box->name)); T_MAIL_ERR_MAILBOX_NOT_FOUND(box->name));
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)