瀏覽代碼

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

uid65697 21 年之前
父節點
當前提交
50b2227279
共有 1 個文件被更改,包括 2 次插入1 次删除
  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));
 		   uintbuf));
 	  break;
 	  break;
 	default:
 	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;
 	  break;
 	}
 	}