1
0
Fork 0

Adding upstream version 0.22.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-17 21:16:46 +01:00
parent cc1b855cb3
commit 22f7f3575c
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
30 changed files with 307 additions and 182 deletions

View file

@ -1,5 +1,5 @@
/* Tarlz - Archiver with multimember lzip compression
Copyright (C) 2013-2021 Antonio Diaz Diaz.
Copyright (C) 2013-2022 Antonio Diaz Diaz.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -122,10 +122,6 @@ void close_and_set_permissions( const struct stat * const in_statsp )
}
inline void set_retval( int & retval, const int new_val )
{ if( retval < new_val ) retval = new_val; }
bool archive_write( const uint8_t * const buf, const long long size,
LZ_Encoder * const encoder )
{
@ -318,9 +314,6 @@ int compress_archive( const Cl_options & cl_opts,
int compress( Cl_options & cl_opts )
{
if( !cl_opts.archive_name.empty() )
{ show_file_error( cl_opts.archive_name.c_str(),
"Option '-f' is incompatible with '--compress'." ); return 1; }
if( cl_opts.num_files > 1 && cl_opts.output_filename.size() )
{ show_file_error( cl_opts.output_filename.c_str(),
"Only can compress one archive when using '-o'." ); return 1; }