]> Dogcows Code - chaz/tar/commitdiff
(decode_header): Call xheader_decode before the assignment to current_stat_info...
authorSergey Poznyakoff <gray@gnu.org.ua>
Tue, 24 Feb 2004 15:27:54 +0000 (15:27 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Tue, 24 Feb 2004 15:27:54 +0000 (15:27 +0000)
src/list.c

index 05f233288be2ab23b5d6a3c556bbd9dd9ea99569..3e2d127c606f87704e4a49073004b96b98c4fa33 100644 (file)
@@ -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
This page took 0.025164 seconds and 4 git commands to generate.