I've recently noticed that the "tv" option from OSF1 V3.2 release 214
tar can list incorrect times for old files. In particular, if
I have two files, temp.1 and temp.2, with the following dates:
altair 33: ls -l temp.1 temp.2
-rw-r--r-- 1 shoppa theory 2786 Sep 21 1994 temp.1
-rw------- 1 shoppa theory 1679 Nov 19 16:06 temp.2
I can put these two files in a tar archive, temp.tar:
altair 34: tar cvf temp.tar temp.1 temp.2
a temp.1 6 Blocks
a temp.2 4 Blocks
But listing the contents of the tar archive gives me an obviously
incorrect time for the older file:
altair 35: tar tvf temp.tar
blocksize = 20
-rw-r--r-- 107/22 2786 Sep 21 1994:17 1994 temp.1
-rw------- 107/22 1679 Nov 19 16:06:00 1995 temp.2
If I extract the files with "tar xf", the resulting files do have
the correct time and date attached to them.
I discovered this problem when porting a script from BSD2.11 which,
among other things, depends on extracting the time and date from a tar
file using "tar tvf". The "tar"s from BSD2.11 and HP-UX apparently do not
have this bug. Does anyone know any easy workarounds for this
problem? Perhaps there is a newer or older release of tar that I
could pick up somewhere? The version of "tar" on my system came from
the V3.2 CD, and has the following date, size, and checksum:
altair 36: ls -l /bin/tar
-rwxr-x--x 3 root system 114688 Apr 18 1995 /bin/tar*
altair 38: cksum /bin/tar
2122580399 114688 /bin/tar
if that helps any in determining exactly which version of tar that I'm
having trouble with.
Tim. (shoppa_at_altair.krl.caltech.edu)
Received on Thu Nov 30 1995 - 00:24:48 NZDT