(extract_volhdr): New function

(prepare_to_extract): Use extract_volhdr as extractor for volume
names.
This commit is contained in:
Sergey Poznyakoff
2006-05-13 11:57:36 +00:00
parent 34e5f66589
commit 520104f5f8

View File

@@ -1030,6 +1030,13 @@ extract_mangle_wrapper (char *file_name, int typeflag)
return 0;
}
static int
extract_volhdr (char *file_name, int typeflag)
{
if (verbose_option)
fprintf (stdlis, _("Reading %s\n"), quote (current_stat_info.file_name));
skip_member ();
}
static int
extract_failure (char *file_name, int typeflag)
@@ -1110,9 +1117,7 @@ prepare_to_extract (char const *file_name, int typeflag, tar_extractor_t *fun)
break;
case GNUTYPE_VOLHDR:
if (verbose_option)
fprintf (stdlis, _("Reading %s\n"), quote (current_stat_info.file_name));
*fun = NULL;
*fun = extract_volhdr;
break;
case GNUTYPE_NAMES: