]> Dogcows Code - chaz/tar/commit
Improve compression format recognition
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 19 Feb 2015 15:00:58 +0000 (17:00 +0200)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 19 Feb 2015 15:00:58 +0000 (17:00 +0200)
commit1847ec67cec36a17354115374954fea211d1f0da
tree1a9766aae51d46aa0de8c58f4f851d55578ab5fa
parent9c2b57232e3bc2e5ba85387560bcdd851849a128
Improve compression format recognition

Some comressed archives can pass the checksum test, which makes tar
treat them as uncompressed archives.

* src/buffer.c (check_compressed_archive): Test the checksum only
if the block we read looks like a valid tar header (i.e. has
a magic string).
src/buffer.c
This page took 0.02399 seconds and 4 git commands to generate.