Searched defs:old_path (Results 1 - 7 of 7) sorted by relevance

/dovecot/src/lib-storage/index/dbox-multi/
H A Dmdbox-file.c190 const char *old_path; local
196 old_path = file->file.cur_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
244 old_path = t_strconcat(dir, "/", fname, NULL);
250 if (link(old_path, new_path) == 0) {
251 i_unlink(old_path);
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
158 old_path = file->file.cur_path;
159 p = strrchr(old_path, '/');
161 dir = t_strdup_until(old_path, p);
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
137 MAILBOX_LIST_PATH_TYPE_DIR, &old_path);
150 fname = strrchr(old_path, '/');
153 i_assert(strncmp(new_path, old_path, fname-old_path) == 0);
/dovecot/src/lib-storage/index/maildir/
H A Dmaildir-sync.c362 const char *old_path, *new_fname, *new_path; local
364 old_path = t_strconcat(dir, "/", fname, NULL);
368 if (rename(old_path, new_path) == 0)
369 i_warning("Fixed broken filename: %s -> %s", old_path, new_fname);
373 old_path, new_path);
/dovecot/src/lib-storage/list/
H A Dmailbox-list-index-backend.c431 const char *root_dir, *old_path, *new_path; local
435 &old_path) <= 0)
436 old_path = NULL;
442 if (!guid_128_is_empty(update->mailbox_guid) && old_path != NULL &&
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
518 if (old_path == NULL) {
519 if (mailbox_tree_iterate_next(old_iter, &old_path) == NULL)
520 old_path = NULL;
527 if (old_path == NULL) {
534 ret = strcmp(old_path, new_path);
538 old_path = NULL;
545 old_path = p_strdup(pool, old_path);
546 array_append(&inotify->new_unsubscriptions, &old_path,
[all...]

Completed in 26 milliseconds