]> Dogcows Code - chaz/tar/blobdiff - src/compare.c
* NEWS: Update.
[chaz/tar] / src / compare.c
index d0cf5f7d6c04963bc96928ab0c975b32d87b7af3..f3723049ed055b3b4ef7d96c5d5c23914b0ab9d8 100644 (file)
@@ -597,9 +597,23 @@ verify_volume (void)
                            "VERIFY FAILURE: %d invalid headers detected",
                            counter), counter));
        }
-      if (status == HEADER_ZERO_BLOCK || status == HEADER_END_OF_FILE)
+      if (status == HEADER_END_OF_FILE)
        break;
+      if (status == HEADER_ZERO_BLOCK)
+       {
+         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)));
+            }
+       }
+      
       diff_archive ();
       tar_stat_destroy (&current_stat_info);
     }
This page took 0.01986 seconds and 4 git commands to generate.