Parcourir la source

(decode_header): Call xheader_decode before the assignment to current_stat_info.archive_file_size.

Sergey Poznyakoff il y a 21 ans
Parent
commit
d8b790047f
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      src/list.c

+ 3 - 2
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