Lines Matching defs:temp_path
102 const char *temp_path;
106 temp_path = t_strconcat(path, ".tmp", NULL);
109 fd = open(temp_path, O_WRONLY | O_CREAT | O_TRUNC, 0600);
113 i_error("open(%s) failed: %m", temp_path);
119 i_error("write(%s) failed: %m", temp_path);
121 i_error("close(%s) failed: %m", temp_path);
126 i_unlink(temp_path);
130 if (rename(temp_path, path) < 0) {
131 i_error("rename(%s, %s) failed: %m", temp_path, path);
132 i_unlink(temp_path);