[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] again implausibly old time stamp
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-tar] again implausibly old time stamp |
Date: |
Fri, 19 Mar 2004 12:45:45 +0200 |
Hi Fabian,
> I still have the same problem with tar-1.13.93 that I had with tar
> 1.13.92.
Yes, I remember this problem. I have not yet finished the cleanup of
oldgnu vs. gnu formats, that's the reason for it. The attached patch
should fix it.
Regards,
Sergey
Index: src/create.c
===================================================================
RCS file: /cvsroot/tar/tar/src/create.c,v
retrieving revision 1.80
diff -p -u -r1.80 create.c
--- src/create.c 22 Feb 2004 20:53:27 -0000 1.80
+++ src/create.c 19 Mar 2004 10:43:57 -0000
@@ -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);