Преглед на файлове

(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));
 	  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;
 	}