(start_header): Check for GNU_FORMAT if incremental_option is set.

This commit is contained in:
Sergey Poznyakoff
2004-03-22 09:16:49 +00:00
parent 72e3da5dc7
commit e5882c8220

View File

@@ -668,7 +668,7 @@ start_header (struct tar_stat_info *st)
xheader_store ("ctime", st, NULL);
}
else if (incremental_option)
if (archive_format == OLDGNU_FORMAT)
if (archive_format == OLDGNU_FORMAT || archive_format == GNU_FORMAT)
{
TIME_TO_CHARS (st->stat.st_atime, header->oldgnu_header.atime);
TIME_TO_CHARS (st->stat.st_ctime, header->oldgnu_header.ctime);