Searched refs:oldpath (Results 1 - 4 of 4) sorted by relevance
/dovecot/src/lib/ |
H A D | nfs-workarounds.h | 20 int nfs_safe_link(const char *oldpath, const char *newpath, bool links1);
|
H A D | nfs-workarounds.c | 117 int nfs_safe_link(const char *oldpath, const char *newpath, bool links1) argument 123 if (stat(oldpath, &st) < 0) 128 if (link(oldpath, newpath) == 0) { 138 if (stat(oldpath, &st) < 0)
|
/dovecot/src/lib-storage/list/ |
H A D | mailbox-list-fs.c | 361 const char *oldpath, *newpath, *p, *oldparent, *newparent; local 363 if (mailbox_list_get_path(oldlist, oldname, type, &oldpath) <= 0 || 367 if (strcmp(oldpath, newpath) == 0) 370 p = strrchr(oldpath, '/'); 371 oldparent = p == NULL ? "/" : t_strdup_until(oldpath, p); 375 if (strcmp(oldparent, newparent) != 0 && stat(oldpath, &st) == 0) { 393 if (rename(oldpath, newpath) < 0 && errno != ENOENT) { 395 oldpath, newpath); 398 if (rmdir_parent && (p = strrchr(oldpath, '/')) != NULL) { 399 oldpath 418 const char *oldvname, *oldpath, *newpath, *alt_newpath, *root_path, *p; local [all...] |
H A D | mailbox-list-maildir.c | 292 const char *oldpath, *newpath; local 294 if (mailbox_list_get_path(oldlist, oldname, type, &oldpath) <= 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 374 &oldpath) <= 0 || 388 if (rename(oldpath, newpath) == 0 || EDESTDIREXISTS(errno)) 392 "rename(%s, %s) failed: %m", oldpath, newpath); 414 const char *oldpath, *newpat local [all...] |
Completed in 13 milliseconds