]> Dogcows Code - chaz/tar/commitdiff
(delete_archive_members): Handle case of
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 3 Sep 2003 06:14:37 +0000 (06:14 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 3 Sep 2003 06:14:37 +0000 (06:14 +0000)
HEADER_SUCCESS_EXTENDED followed by HEADER_FAILURE.
Pass true/false to read_header, not 1/0.

src/delete.c

index bb09af8154bac990a66c358786777e0bb19b2ad4..a854adce3b1299d67dfa7a4ac1a8382031297275 100644 (file)
@@ -150,7 +150,7 @@ delete_archive_members (void)
 
   do
     {
-      enum read_header status = read_header (1);
+      enum read_header status = read_header (true);
 
       switch (status)
        {
@@ -189,6 +189,7 @@ delete_archive_members (void)
              /* Fall through.  */
 
            case HEADER_SUCCESS:
+           case HEADER_SUCCESS_EXTENDED:
            case HEADER_ZERO_BLOCK:
              ERROR ((0, 0, _("Skipping to next header")));
              /* Fall through.  */
@@ -238,7 +239,7 @@ delete_archive_members (void)
 
          if (current_block == record_end)
            flush_archive ();
-         status = read_header (0);
+         status = read_header (false);
 
          if (status == HEADER_ZERO_BLOCK && ignore_zeros_option)
            {
This page took 0.024012 seconds and 4 git commands to generate.