open_tmp_file_func() is only used when accessing remote HTTP repositories IIRC.