Can not extract all files in tar.gz

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
charlie123
New Member
New Member
Posts: 1
Joined: 2015-05-20, 23:57 UTC

Can not extract all files in tar.gz

Post by *charlie123 »

Windows 7, TC8.51

I got a tar.gz file from Gitweb. But TC can only extract some files, missing some files and folders.

I tried Winrar, it said corrupted file. I tried Winzip, it can extract. Is this is some kind of new format of tar.gz?

Thanks!
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6480
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

What about some example to test, or how do you expect someone to respond ?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe they were just links?
Author of Total Commander
https://www.ghisler.com
User avatar
Mummu
Junior Member
Junior Member
Posts: 12
Joined: 2009-06-25, 15:05 UTC

Post by *Mummu »

I also have problems with tar.gz files.
The last example is tar.gz files from this page https://susestudio.com/a/TadMax/owncloud-in-a-box#
Maybe its a new format version. Totalcmd cant read the file list and just shows one gibberish file inside the tar.gz
User avatar
Dalai
Power Member
Power Member
Posts: 9387
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

2Mummu
Can you provide a sample file that doesn't require a log-in and is not several hundreds of megabytes in size?

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Mummu
Junior Member
Junior Member
Posts: 12
Joined: 2009-06-25, 15:05 UTC

Post by *Mummu »

I just split the file with totalcmd. Here is the first 1.5Mb

http://s000.tinyupload.com/index.php?file_id=89495949877779669366

When you open it with winrar it shows one folder with two files inside, but totalcmd show one corrupted filename.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Any idea what file created this GZ file?

The GZ header indicates (in the 4th byte) that the name of the packed TAR file is stored in the header of the GZ file, and the name is ²¤RA. RAR does not use the TAR name, it just extracts the TAR and shows the name of that TAR.
Author of Total Commander
https://www.ghisler.com
User avatar
Mummu
Junior Member
Junior Member
Posts: 12
Joined: 2009-06-25, 15:05 UTC

Post by *Mummu »

I'm not sure, but the name of the tar file is at offset A4BE, after the the whole header index, and not in the beginning where ²¤RA is.
Actually the ²¤ in hex is A4B2, so it must be a pointer to the filename. And when you add the bytes before it, you get exactly the filename offset.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That's odd, I cannot find that in the GZIP specifications:
https://tools.ietf.org/html/rfc1952

It must be some third party extension. That's why I'm asking whether you know what program created that file...
Author of Total Commander
https://www.ghisler.com
Post Reply