microtar icon indicating copy to clipboard operation
microtar copied to clipboard

Archiving gz files

Open nisanb opened this issue 5 years ago • 3 comments

When attempting to archive an already tar.gz compressed file, it corrupts it and then I fail to extract.

nisanb avatar Jul 03 '19 09:07 nisanb

Hi. I'm working on a .tar.gz reader based on microtar and this issue might be relevant to me.

If I get it right, you want a .tar.gz inside of a .tar? Why exactly? Do you have any tests?

otse avatar Aug 01 '19 07:08 otse

I think he tries to archive a whole directory that contains some TGZs.

De : Okay Envoyé : jeudi 1 août à 09:29 Objet : Re: [rxi/microtar] Archiving gz files (#11) À : rxi/microtar Cc : Subscribed

Hi. I'm working on a .tar.gz reader based on microtar and this issue might be relevant to me. If I get it right, you want a .tar.gz inside of a .tar? Why exactly? Do you have any tests? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/rxi/microtar/issues/11?email_source=notifications&email_token=AJERDMPGLMJF5MKENGG5263QCKGGVA5CNFSM4H5DRKM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3JTO7I#issuecomment-517158781, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJERDMP2L2KPS5SIINMIHXLQCKGGVANCNFSM4H5DRKMQ.

taokann avatar Aug 01 '19 07:08 taokann

Yes, I am trying to archive .tar.gz files as well. I solved it by using ios::binary when reading the data from the file.

nisanb avatar Aug 01 '19 09:08 nisanb