1
0
Fork 0

Adding upstream version 0.7.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-24 04:58:36 +01:00
parent c2bdc739f1
commit 0504e18b91
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
17 changed files with 318 additions and 96 deletions

View file

@ -551,8 +551,8 @@ int print_magic_type( const std::string & magic_type )
{
std::string data;
if( magic_type == "gzip" ) std::printf( "\x1F\x8B" );
else if( magic_type == "bzip2" ) std::printf( "BZh" );
if( magic_type == "bzip2" ) std::printf( "BZh" );
else if( magic_type == "gzip" ) std::printf( "\x1F\x8B" );
else if( magic_type == "lzip" ) std::printf( "LZIP" );
else if( magic_type == "xz" ) std::printf( "%c7zXZ", '\xFD' );
else if( hex_to_data( magic_type, data ) ) std::printf( data.c_str() );