]> Dogcows Code - chaz/tar/commitdiff
(extract_volhdr): New function
authorSergey Poznyakoff <gray@gnu.org.ua>
Sat, 13 May 2006 11:57:36 +0000 (11:57 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sat, 13 May 2006 11:57:36 +0000 (11:57 +0000)
(prepare_to_extract): Use extract_volhdr as extractor for volume
names.

src/extract.c

index d346f79ac272a04344ed7e78ccafe55aa28a14fa..f16baadc62fcb7fd88c2262c5d30bfdbfb2ca411 100644 (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:
This page took 0.029093 seconds and 4 git commands to generate.