From: Sergey Poznyakoff Date: Wed, 12 Nov 2003 11:46:04 +0000 (+0000) Subject: (decode_header): Initialize st_atime and st_ctime. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=f035e8f9e2e5221d715fe61192d315f40734e96d;p=chaz%2Ftar (decode_header): Initialize st_atime and st_ctime. --- diff --git a/src/list.c b/src/list.c index 2148990..da71719 100644 --- a/src/list.c +++ b/src/list.c @@ -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);