Searched defs:new_path (Results 1 - 8 of 8) sorted by relevance

/dovecot/src/lib-storage/index/dbox-multi/
H A Dmdbox-file.c191 const char *new_dir, *new_fname, *new_path; local
200 new_path = t_strdup_printf("%s/%s", new_dir, new_fname);
202 if (stat(new_path, &st) == 0) {
204 "mdbox: %s already exists, rebuilding index", new_path);
208 if (rename(old_path, new_path) < 0) {
211 old_path, new_path);
H A Dmdbox-storage-rebuild.c242 const char *old_path, *new_path, *fname = *fname_p; local
246 new_path = t_strdup_printf("%s/"MDBOX_MAIL_FILE_FORMAT,
250 if (link(old_path, new_path) == 0) {
252 *fname_p = strrchr(new_path, '/') + 1;
258 i_error("link(%s, %s) failed: %m", old_path, new_path);
/dovecot/src/lib-storage/index/dbox-single/
H A Dsdbox-file.c152 const char *p, *old_path, *dir, *new_fname, *new_path; local
164 new_path = t_strdup_printf("%s/%s", dir, new_fname);
166 if (!ignore_if_exists && stat(new_path, &st) == 0) {
168 "sdbox: %s already exists, rebuilding index", new_path);
172 if (rename(old_path, new_path) < 0) {
175 old_path, new_path);
/dovecot/src/plugins/mailbox-alias/
H A Dmailbox-alias-plugin.c133 const char *old_path, *new_path, *fname; local
141 &new_path);
153 i_assert(strncmp(new_path, old_path, fname-old_path) == 0);
155 if (symlink(fname, new_path) < 0) {
162 "symlink(%s, %s) failed: %m", fname, new_path);
/dovecot/src/lib-storage/index/maildir/
H A Dmaildir-sync.c294 const char *new_fname, *new_path; local
344 new_path = t_strconcat(mailbox_get_path(&ctx->mbox->box),
347 if (rename(path2, new_path) == 0)
352 path2, new_path);
362 const char *old_path, *new_fname, *new_path; local
366 new_path = t_strconcat(mailbox_get_path(&ctx->mbox->box),
368 if (rename(old_path, new_path) == 0)
373 old_path, new_path);
H A Dmaildir-save.c80 const char *tmp_path, *new_path; local
90 new_path = newdir ?
104 if (rename(tmp_path, new_path) == 0) {
114 tmp_path, new_path);
/dovecot/src/lib-storage/list/
H A Dmailbox-list-index-backend.c431 const char *root_dir, *old_path, *new_path; local
446 new_path = index_get_guid_path(box->list, root_dir,
448 if (strcmp(old_path, new_path) == 0)
450 else if (rename(old_path, new_path) == 0)
458 old_path, new_path);
H A Dmailbox-list-index-notify.c502 const char *old_path = NULL, *new_path = NULL; local
522 if (new_path == NULL) {
523 if (mailbox_tree_iterate_next(new_iter, &new_path) == NULL)
524 new_path = NULL;
528 if (new_path == NULL)
531 } else if (new_path == NULL)
534 ret = strcmp(old_path, new_path);
539 new_path = NULL;
541 new_path = p_strdup(pool, new_path);
[all...]

Completed in 36 milliseconds