(start_header): Pass mtime as a call-specific data to xheader_store.

This commit is contained in:
Sergey Poznyakoff
2006-11-13 10:39:51 +00:00
parent 6712656eb2
commit 304d8b9f0c

View File

@@ -742,7 +742,7 @@ start_header (struct tar_stat_info *st)
{
if (MAX_OCTAL_VAL (header->header.mtime) < mtime.tv_sec
|| mtime.tv_nsec != 0)
xheader_store ("mtime", st, NULL);
xheader_store ("mtime", st, &mtime);
if (MAX_OCTAL_VAL (header->header.mtime) < mtime.tv_sec)
mtime.tv_sec = 0;
}