X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=inline;f=src%2Fcompare.c;h=91ced57031925ddce030a4df2dc7f1d8decd4452;hb=73d0d1a0f883be5f67534362c99382f1eae8d178;hp=6b7e6d8747053bebfef98bcf27707ba9d3b1d489;hpb=14efeb9f956e38d7beaf3fbedb04d3f3bb9ece3a;p=chaz%2Ftar diff --git a/src/compare.c b/src/compare.c index 6b7e6d8..91ced57 100644 --- a/src/compare.c +++ b/src/compare.c @@ -512,14 +512,23 @@ diff_archive (void) void verify_volume (void) { + int may_fail = 0; if (removed_prefixes_p ()) { WARN((0, 0, _("Archive contains file names with leading prefixes removed."))); + may_fail = 1; + } + if (transform_program_p ()) + { WARN((0, 0, - _("Verification may fail to locate original files."))); + _("Archive contains transformed file names."))); + may_fail = 1; } - + if (may_fail) + WARN((0, 0, + _("Verification may fail to locate original files."))); + if (!diff_buffer) diff_init (); @@ -611,8 +620,10 @@ verify_volume (void) (0, 0, _("A lone zero block at %s"), STRINGIFY_BIGINT (current_block_ordinal (), buf))); } + continue; } + decode_header (current_header, ¤t_stat_info, ¤t_format, 1); diff_archive (); tar_stat_destroy (¤t_stat_info); }