Searched defs:newpath (Results 1 - 5 of 5) sorted by relevance

/dovecot/src/lib-storage/list/
H A Dmailbox-list-fs.c361 const char *oldpath, *newpath, *p, *oldparent, *newparent; local
364 mailbox_list_get_path(newlist, newname, type, &newpath) <= 0)
367 if (strcmp(oldpath, newpath) == 0)
372 p = strrchr(newpath, '/');
373 newparent = p == NULL ? "/" : t_strdup_until(newpath, p);
393 if (rename(oldpath, newpath) < 0 && errno != ENOENT) {
395 oldpath, newpath);
418 const char *oldvname, *oldpath, *newpath, *alt_newpath, *root_path, *p; local
430 MAILBOX_LIST_PATH_TYPE_DIR, &newpath) <= 0)
461 p = strrchr(newpath, '/');
[all...]
H A Dmailbox-list-maildir.c292 const char *oldpath, *newpath; local
295 mailbox_list_get_path(newlist, newname, type, &newpath) <= 0)
298 if (strcmp(oldpath, newpath) == 0)
301 if (rename(oldpath, newpath) < 0 && errno != ENOENT) {
303 oldpath, newpath);
316 const char *pattern, *oldpath, *newpath, *old_childname, *new_childname; local
377 &newpath) <= 0)
388 if (rename(oldpath, newpath) == 0 || EDESTDIREXISTS(errno))
392 "rename(%s, %s) failed: %m", oldpath, newpath);
414 const char *oldpath, *newpath, *root_pat local
[all...]
/dovecot/src/lib/
H A Dnfs-workarounds.c117 int nfs_safe_link(const char *oldpath, const char *newpath, bool links1) argument
128 if (link(oldpath, newpath) == 0) {
/dovecot/src/lib-storage/index/maildir/
H A Dmaildir-mail.c661 const char *fname, *newpath, *extra, *info, *dir; local
684 newpath = t_strdup_printf("%s/%s,S=%"PRIuUOFF_T"%s", dir,
688 if (rename(path, newpath) == 0) {
692 ctx->wrong_key, path, newpath);
699 path, newpath);
H A Dmaildir-sync-index.c109 const char *dir, *fname, *newfname, *newpath; local
135 newpath = t_strconcat(dir, newfname, NULL);
136 if (strcmp(path, newpath) == 0) {
146 if (rename(path, newpath) < 0) {
152 path, newpath);

Completed in 14 milliseconds