Lines Matching defs:temp_path
518 const char *temp_path = NULL;
532 temp_path = t_strdup_printf("%s.tmp", dict->path);
533 fd = creat(temp_path, 0600);
536 "dict-file: creat(%s) failed: %m", temp_path);
556 temp_path = file_dotlock_get_lock_path(dotlock);
572 (void)fd_copy_permissions(dict->fd, dict->path, fd, temp_path);
575 (void)fd_copy_parent_dir_permissions(dict->path, fd, temp_path);
594 *error_r = t_strdup_printf("write(%s) failed: %s", temp_path,
610 if (rename(temp_path, dict->path) < 0) {
612 temp_path, dict->path);