]> Dogcows Code - chaz/tar/commitdiff
(read_and): Treat only two successive zero filled blocks as an EOF indicator. Issue...
authoruid65697 <uid65697>
Thu, 25 Dec 2003 10:19:24 +0000 (10:19 +0000)
committeruid65697 <uid65697>
Thu, 25 Dec 2003 10:19:24 +0000 (10:19 +0000)
src/list.c

index 77dce5507215fc6875c0de0e047045bc362f85d3..b8a1b177dd2ea909bfed346cb49b56ed7779b935 100644 (file)
@@ -130,10 +130,19 @@ read_and (void (*do_something) (void))
            }
 
          set_next_block_after (current_header);
+
+         if (!ignore_zeros_option)
+           {
+             char buf[UINTMAX_STRSIZE_BOUND];
+
+             status = read_header (false);
+             if (status == HEADER_ZERO_BLOCK)
+               break;
+             WARN ((0, 0, _("A lone zero block at %s"),
+                    STRINGIFY_BIGINT (current_block_ordinal (), buf)));
+           }
          status = prev_status;
-         if (ignore_zeros_option)
-           continue;
-         break;
+         continue;
 
        case HEADER_END_OF_FILE:
          if (block_number_option)
This page took 0.023851 seconds and 4 git commands to generate.