Red Hat Bugzilla – Bug 36669
y2k bug in tar-1.13.17-8
Last modified: 2007-04-18 12:32:44 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.16-22 i586)
If you execute:
tar -cvf ltx --newer='2001-01-01' <directory-name>
All files are tar-ed that are newer than Jan 01 2001.
However, if you execute:
tar -cvf ltx --newer='2000-01-01' <directory-name>
all files are tar-ed. The same thing happens is the satndard date format
like: Thu Apr 19 11:06:20 CDT 2001
It seems to happen with Year 2000 dates.
Steps to Reproduce:
1.tar -cvf ltx --newer='2000-01-01' <directory-name>
Actual Results: All files in directory are tarred even those before
Expected Results: Only files with dates after 01/01/2000 should be tarred
I appologize. This is certainly trtue on my machine but not on other machines I
tried this on using the same version of tar. I give up and you'all should
probably also give up trying to fix what seems to be a phantom problem.
Assuming your tar was compromised... Does this still happen on your machine if
you reinstall the tar package?
I tried to remove the tar-1.13.17-8 and then reinstall it. The results werre the
same. That is
the y2k bug remained. I am stumped. The delay in responding was because I was
out of town for 4 days.