From: Sergey Poznyakoff Date: Tue, 24 Feb 2004 15:27:54 +0000 (+0000) Subject: (decode_header): Call xheader_decode before the assignment to current_stat_info... X-Git-Tag: release_1_14~128 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=d8b790047fbbbab143527e42b6eba7e14708afb5;p=debian%2Ftar (decode_header): Call xheader_decode before the assignment to current_stat_info.archive_file_size. --- diff --git a/src/list.c b/src/list.c index 05f23328..3e2d127c 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