]> Dogcows Code - chaz/tar/commitdiff
(decode_header): Initialize st_atime and st_ctime.
authorSergey Poznyakoff <gray@gnu.org.ua>
Wed, 12 Nov 2003 11:46:04 +0000 (11:46 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Wed, 12 Nov 2003 11:46:04 +0000 (11:46 +0000)
src/list.c

index 2148990f7d7cb57536db59bcdecf623c90d56d94..da717193d4830c6fb58825da3904d40630e70992 100644 (file)
@@ -502,6 +502,9 @@ decode_header (union block *header, struct tar_stat_info *stat_info,
   stat_info->devmajor = MAJOR_FROM_HEADER (header->header.devmajor);
   stat_info->devminor = MINOR_FROM_HEADER (header->header.devminor);
   
+  stat_info->stat.st_atime = start_time;
+  stat_info->stat.st_ctime = start_time;
+
   if (format == OLDGNU_FORMAT && incremental_option)
     {
       stat_info->stat.st_atime = TIME_FROM_HEADER (header->oldgnu_header.atime);
This page took 0.025285 seconds and 4 git commands to generate.