Lines Matching refs:tmp_new_path
5904 char *tmp_new_path, *tmp_tmp_path, *ending;
5912 r = get_file_to_edit(ending, user_home, user_runtime, &tmp_new_path);
5916 r = create_edit_temp_file(tmp_new_path, tmp_new_path, &tmp_tmp_path);
5918 free(tmp_new_path);
5922 *ret_new_path = tmp_new_path;
5936 char *tmp_new_path, *tmp_tmp_path;
5944 r = get_file_to_edit(unit_name, user_home, user_runtime, &tmp_new_path);
5948 if (!path_equal(fragment_path, tmp_new_path) && access(tmp_new_path, F_OK) == 0) {
5951 r = ask_char(&response, "yn", "\"%s\" already exists. Overwrite with \"%s\"? [(y)es, (n)o] ", tmp_new_path, fragment_path);
5953 free(tmp_new_path);
5958 free(tmp_new_path);
5963 r = create_edit_temp_file(tmp_new_path, fragment_path, &tmp_tmp_path);
5965 log_error_errno(r, "Failed to create temporary file for \"%s\": %m", tmp_new_path);
5966 free(tmp_new_path);
5970 *ret_new_path = tmp_new_path;