Lines Matching defs:temp_path
316 const char *temp_path, struct ostream *output)
330 if (stream_copy(file, output, temp_path, start_offset) < 0)
369 if (stream_copy(file, output, temp_path,
400 if (stream_copy(file, output, temp_path, msg_size) < 0)
441 "write(%s) failed: %s", temp_path, o_stream_get_error(output));
450 const char *dir, *p, *temp_path, *broken_path;
460 temp_path = t_strdup_printf("%s/%s", dir, dbox_generate_tmp_filename());
461 fd = file->storage->v.file_create_fd(file, temp_path, FALSE);
467 ret = dbox_file_fix_write_stream(file, start_offset, temp_path, output);
474 "close(%s) failed: %m", temp_path);
478 if (unlink(temp_path) < 0) {
480 "unlink(%s) failed: %m", temp_path);
499 i_unlink(temp_path);
503 if (rename(temp_path, file->cur_path) < 0) {
506 temp_path, file->cur_path);