Chris Ridd <chrisridd at mac.com> wrote:

> It sounds like the "normal" tar to me as well.
>
> I think you can spot GNU tar from the posix_header.magic field in the  
> tarfile, but if you get different results by unpacking with GNU tar  
> that's probably a more reliable indication that GNU tar's been  
> accidentally used.

Simply use a tar implementation that knows both the POSIX standard and the 
GNU nonstandard archive.

star unpacks automatically and adopts to the archive format.

star -print-artype< gtar/tar-1.03.tar.Z
-: lzw compressed gnutar archive.

star -print-artype f= gtar/tar-1.10.tar.Z    
gtar/tar-1.10.tar.Z: lzw compressed gnutar archive.

star -print-artype f= gtar/tar-1.13.93.tar.bz2 
gtar/tar-1.13.93.tar.bz2: bzip2 compressed unknown tar archive.


The latter is neither POSIX not GNU tar.

Important fact: star warns if an archive contains extensions that do not match 
the archive type that was detected by looking at the first archive header.
This is important as GNU tar not only created non-standard archives but also 
sometimes changes the archive type in the mikddle of the archive.

J?rg

-- 
 EMail:joerg at schily.isdn.cs.tu-berlin.de (home) J?rg Schilling D-13353 Berlin
       js at cs.tu-berlin.de                (uni)  
       joerg.schilling at fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily

Reply via email to