Bug 15853

Summary: tar --newer-mtime flag has Y2K bug
Product: Base System Reporter: gordon <gordon>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.3-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description gordon 2000-01-03 00:20:00 UTC
	
	The tar --newer-mtime flag (specifically get_date in getdate.y)
	will no longer accept the date format "1 day ago 00:00:00"
	(handy for incremental backups) but if the date is before 
	Jan 1, 2000 00:00:00, it works.  It is not necessary for
	the "N days ago" to cross the 1999/2000 rollover for the
	failure to happen.

How-To-Repeat: 
	
	cd to some directory with a small number of files in it.
	% tar -cvf /dev/null --newer-mtime "1 day ago 00:00:00" .
	Observe that it complains about a bad date format.
	Set date to 31 Dec 1999 00:00:00 .
	Try same command line and observe that it works.
Comment 1 Steve Price freebsd_committer freebsd_triage 2000-01-03 01:28:37 UTC
Responsible Changed
From-To: gnats-admin->freebsd-bugs

Misfiled PR. 
Comment 2 Bruce A. Mah freebsd_committer freebsd_triage 2001-11-17 19:14:35 UTC
State Changed
From-To: open->closed

This appears to have been fixed (in a different way) in  
revision 1.4 of getdate.y.