From: Sergey Poznyakoff Date: Sat, 13 May 2006 11:57:36 +0000 (+0000) Subject: (extract_volhdr): New function X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=520104f5f80056a2adc8ed23ec3a623bcf94c260;p=chaz%2Ftar (extract_volhdr): New function (prepare_to_extract): Use extract_volhdr as extractor for volume names. --- diff --git a/src/extract.c b/src/extract.c index d346f79..f16baad 100644 --- a/src/extract.c +++ b/src/extract.c @@ -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: