From f035e8f9e2e5221d715fe61192d315f40734e96d Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Wed, 12 Nov 2003 11:46:04 +0000 Subject: [PATCH] (decode_header): Initialize st_atime and st_ctime. --- src/list.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.45.2