Subject: bin/9123: tar v1.11.12 is not Y2K compliant
To: None <gnats-bugs@gnats.netbsd.org>
From: None <trevin@eyring.com>
List: netbsd-bugs
Date: 01/05/2000 08:24:51
>Number: 9123
>Category: bin
>Synopsis: The -N option to tar does not recognize the year 2000 as valid
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 5 08:24:01 2000
>Last-Modified:
>Originator: Trevin Beattie
>Organization:
Eyring Corporation
>Release: 1.4.1
>Environment:
System: NetBSD nanook 1.4.1 NetBSD 1.4.1 (NANOOK) #4: Fri Nov 19 11:21:23 MST 1999 trevin@nanook:/usr/src/sys/arch/i386/compile/NANOOK i386
>Description:
In performing incremental backups, I use a command like:
tar -czf incremental.daily.tar.gz -T file.list \
-N "`date --reference incremental.weekly.tar.gz`"
(using Gnu's `date'.) This is supposed to back up only those files which
are newer than a reference backup. It has been working fine up until
the turn of the millenium; since that time, the above command fails
with the error:
tar: invalid date format `Tue Jan 4 12:01:13 MST 2000'
>How-To-Repeat:
~% cd /tmp
tmp% ls -l
total 213
-rw-rw-r-- 1 trevin staff 1442 Jan 4 12:01 bar.c
-rw-r----- 1 trevin staff 10317 Jan 4 12:01 bar.ps
-rw-rw-r-- 1 trevin staff 2541 Jan 4 11:50 foo.c
-rw-r----- 1 trevin staff 13490 Jan 4 11:51 foo.ps
-rw-r--r-- 1 root wheel 11 Jan 5 09:01 lpq.00075696
-rw-r----- 1 trevin staff 2091 Jan 5 09:06 p25380
-rw-r----- 1 trevin staff 2091 Jan 5 09:06 pf25380
-rw-rw-r-- 1 shutchis staff 170321 Dec 17 14:08 projects-to-do.ps
/tmp% tar -cvf test.tar -N "Tue Jan 4 12:01:13 MST 2000" .
tar: invalid date format `Tue Jan 4 12:01:13 MST 2000'
/tmp% tar -cvf test.tar -N "Thu Dec 30 11:01:28 MST 1999" .
./
lpq.00075696
foo.ps
foo.c
bar.ps
bar.c
.0.1e88b
p25380
pf25380
.#p25380
#p25380#
tar: test.tar is the archive; not dumped
/tmp%
>Fix:
Install Gnu tar-1.13 (from ftp://ftp.gnu.org/gnu/tar/tar-1.13.tar.gz).
>Audit-Trail:
>Unformatted: