Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: mark@cita.toronto.edu (Mark Bartelt)
Subject: Re: SunOS can't untar OSF/1 tar files?
Date: 1996/10/23	[thread overview]
Message-ID: <DzqA88.EAC@utcc.utoronto.ca> (raw)


[ J.S.Brainard ]

>>  We have made the recent discovery that SunOS 4.1.3/4 can't tar -xvf
>>  tar files created under OSF/1 3.x.
 [...]
>>  If we create the directories ahead of time tar seems to fill them up for
>>  us, and tar -tvf has no problems, providing a tedious work around, if
>>  necessary.
 [...]
>>  I've checked the FAQ, but there doesn't seem to be an entry about this
>>  problem.  Have others encountered it?  Do you know of any patches
>>  or efficient, simple work arounds?

Yeah, we've encountered it, and it is a nuisance.  I haven't checked whether
gnutar can deal with the OSF-created tar archives, but if it can, that would
probably be a good way to go.

As for "an efficient, simple workaround", I generally do something like

	mkdir -p `tar tf tarfile|sed 's+/[^/]* *$++'|sort|uniq`
	tar xf tarfile

That's not *too* tedious, especially if you encapsulate it in a shell script.
(The "mkdir -p" could probably be just "mkdir", now that I think about it.)
Anyway, this creates all necessary directories (except, possibly, empty ones
which exist in the archive).  The "tar x" will spit out an error message for
every directory ...

	tar: foo/bar - cannot create -- Is a directory

... but you can just ignore them.

Mark Bartelt                                                    416/978-5619
Canadian Institute for                                 mark@cita.utoronto.ca
Theoretical Astrophysics                   http://www.cita.utoronto.ca/~mark

"Sheep not busy being shorn are busy frying" -- Dylan, at a NZ lamb barbecue
            [ singing "It's all right, ma (I'm only bleating)" ]



             reply	other threads:[~1996-10-23  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-23  4:00 Mark Bartelt [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-10-22  4:00 SunOS can't untar OSF/1 tar files? J.S.Brainard
1996-10-23  4:00 ` James Bonfield
     [not found]   ` <tm.846099599@deepika>
1996-10-30  5:00     ` James Bonfield
1996-10-23  4:00 ` Kevin P. Neal
read-only archive

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