]> Dogcows Code - chaz/tar/blobdiff - src/compare.c
Issue a warning if the archive being compared contais transformed file names.
[chaz/tar] / src / compare.c
index f3112c6de8ff7b653b3212a7237bb2153b3cfffb..91ced57031925ddce030a4df2dc7f1d8decd4452 100644 (file)
@@ -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 ();
 
This page took 0.028169 seconds and 4 git commands to generate.