(start_header): Override mtime if requested

This commit is contained in:
Sergey Poznyakoff
2006-06-21 10:40:10 +00:00
parent ceaef10443
commit a71b154289

View File

@@ -730,7 +730,7 @@ start_header (struct tar_stat_info *st)
}
{
struct timespec mtime = st->mtime;
struct timespec mtime = set_mtime_option ? mtime_option : st->mtime;
if (archive_format == POSIX_FORMAT)
{
if (MAX_OCTAL_VAL (header->header.mtime) < mtime.tv_sec