Procházet zdrojové kódy

(print_header): Use archive_file_size member when printing real file size.

uid65697 před 21 roky
rodič
revize
50b2227279
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/list.c

+ 2 - 1
src/list.c

@@ -1096,7 +1096,8 @@ print_header (struct tar_stat_info *st, off_t block_ordinal)
 		   uintbuf));
 	  break;
 	default:
-	  strcpy (size, STRINGIFY_BIGINT (st->stat.st_size, uintbuf));
+	  /* st->stat.st_size keeps stored file size */
+	  strcpy (size, STRINGIFY_BIGINT (st->archive_file_size, uintbuf));
 	  break;
 	}