diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:43:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:43:28 +0000 |
commit | e0c798fd4f336deba0ac88c5f71418dda624bd2e (patch) | |
tree | 220a8f28beadbd5b80a0c6d7c1155eb842e77a99 /delete.cc | |
parent | Adding upstream version 0.19. (diff) | |
download | tarlz-e0c798fd4f336deba0ac88c5f71418dda624bd2e.tar.xz tarlz-e0c798fd4f336deba0ac88c5f71418dda624bd2e.zip |
Adding upstream version 0.21.upstream/0.21
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'delete.cc')
-rw-r--r-- | delete.cc | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -19,19 +19,14 @@ #include <cctype> #include <cerrno> -#include <climits> #include <cstdio> #include <cstdlib> -#include <cstring> -#include <string> -#include <vector> -#include <pthread.h> // for tarlz.h -#include <stdint.h> +#include <stdint.h> // for lzlib.h #include <unistd.h> #include <lzlib.h> -#include "arg_parser.h" #include "tarlz.h" +#include "arg_parser.h" #include "lzip_index.h" #include "archive_reader.h" @@ -85,7 +80,7 @@ int tail_copy( const Arg_parser & parser, const Archive_descriptor & ad, */ int delete_members( const Cl_options & cl_opts ) { - if( cl_opts.filenames <= 0 ) + if( cl_opts.num_files <= 0 ) { if( verbosity >= 1 ) show_error( "Nothing to delete." ); return 0; } if( cl_opts.archive_name.empty() ) { show_error( "Deleting from stdin not implemented yet." ); return 1; } |