Searched defs:tmppath (Results 1 - 2 of 2) sorted by relevance
/dovecot/src/lib/ |
H A D | file-copy.c | 13 static int file_copy_to_tmp(const char *srcpath, const char *tmppath, argument 25 if (link(srcpath, tmppath) == 0) 28 if (i_unlink_if_exists(tmppath) < 0) 30 if (link(srcpath, tmppath) == 0) 36 i_error("link(%s, %s) failed: %m", srcpath, tmppath); 58 fd_out = open(tmppath, O_WRONLY | O_CREAT | O_TRUNC, st.st_mode); 61 i_error("open(%s, O_CREAT) failed: %m", tmppath); 68 i_error("fchown(%s) failed: %m", tmppath); 85 i_error("write(%s) failed: %s", tmppath, 98 i_error("close(%s) failed: %m", tmppath); 109 const char *tmppath; local [all...] |
/dovecot/src/doveadm/ |
H A D | doveadm-sis.c | 98 const char *p, *destdir, *tmppath; local 107 tmppath = t_strdup_printf("%s/temp.%s.%s.%s", 110 if (link(src, tmppath) < 0) { 113 i_error("link(%s, %s) failed: %m", src, tmppath); 116 if (stat(tmppath, &st) < 0) { 117 i_error("stat(%s) failed: %m", tmppath); 121 i_unlink(tmppath); 124 if (rename(tmppath, dest) < 0) { 125 i_error("rename(%s, %s) failed: %m", src, tmppath); 126 i_unlink(tmppath); [all...] |
Completed in 7 milliseconds