[NCLUG] Y2k problem in Gnu Tar still?

Sean Reifschneider jafo at tummy.com
Wed Feb 28 16:16:27 MST 2001


On Wed, Feb 28, 2001 at 02:00:50PM -0700, Michael Dwyer wrote:
>Okay, so does anybody know what the deal with this is?
>
>tar -cvf /dev/null -N "Feb 5, 2001" .

The code in question is in src/create.c, and reads:

   && (!after_date_option || current_stat.st_ctime < newer_ctime_option))

I added some debugging and when I ran "tar cf /tmp/foo -N 'Feb 5, 2001' src",
the value for newer_ctime_option was 981356400, which corresponds to
"Mon Feb  5 00:00:00 2001".

Seems like the 1.13.17 of tar works fine.

Sean
-- 
 The First Rule of Program Optimization: Don't do it.
 The Second Rule of Program Optimization (For experts only): Don't do it yet.
Sean Reifschneider, Inimitably Superfluous <jafo at tummy.com>
tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python



More information about the NCLUG mailing list