tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* "tar tv" problems under V3.2
@ 1995-11-29 23:06 Tim Shoppa
  0 siblings, 0 replies; only message in thread
From: Tim Shoppa @ 1995-11-29 23:06 UTC (permalink / raw)
  To: tru64-unix-managers

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@altair.krl.caltech.edu)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-11-29 23:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-11-29 23:06 "tar tv" problems under V3.2 Tim Shoppa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox