Explorar o código

(list_archive): Always decode the header. This
is necessary so the extended header is processed and the correct
filename is printed no matter what the state of verbose_option.

Sergey Poznyakoff %!s(int64=22) %!d(string=hai) anos
pai
achega
01decb5737
Modificáronse 1 ficheiros con 2 adicións e 5 borrados
  1. 2 5
      src/list.c

+ 2 - 5
src/list.c

@@ -175,12 +175,9 @@ list_archive (void)
 {
   /* Print the header block.  */
 
+  decode_header (current_header, &current_stat_info, &current_format, 0);
   if (verbose_option)
-    {
-      if (verbose_option > 1)
-	decode_header (current_header, &current_stat_info, &current_format, 0);
-      print_header (-1);
-    }
+    print_header (-1);
 
   if (incremental_option && current_header->header.typeflag == GNUTYPE_DUMPDIR)
     {