From d8b790047fbbbab143527e42b6eba7e14708afb5 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 24 Feb 2004 15:27:54 +0000 Subject: [PATCH] (decode_header): Call xheader_decode before the assignment to current_stat_info.archive_file_size. --- src/list.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/list.c b/src/list.c index 05f2332..3e2d127 100644 --- a/src/list.c +++ b/src/list.c @@ -563,7 +563,8 @@ decode_header (union block *header, struct tar_stat_info *stat_info, { case BLKTYPE: case CHRTYPE: - stat_info->stat.st_rdev = makedev (stat_info->devmajor, stat_info->devminor); + stat_info->stat.st_rdev = makedev (stat_info->devmajor, + stat_info->devminor); break; default: @@ -571,8 +572,8 @@ decode_header (union block *header, struct tar_stat_info *stat_info, } } - current_stat_info.archive_file_size = current_stat_info.stat.st_size; xheader_decode (stat_info); + current_stat_info.archive_file_size = current_stat_info.stat.st_size; } /* Convert buffer at WHERE0 of size DIGS from external format to -- 2.44.0