From 18525b97f1a4b60884962d8fb326e8e85d837686 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 17 Jul 2021 09:43:33 +0200 Subject: Merging upstream version 0.21. Signed-off-by: Daniel Baumann --- delete.cc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'delete.cc') diff --git a/delete.cc b/delete.cc index e9645d8..9347888 100644 --- a/delete.cc +++ b/delete.cc @@ -19,19 +19,14 @@ #include #include -#include #include #include -#include -#include -#include -#include // for tarlz.h -#include +#include // for lzlib.h #include #include -#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; } -- cgit v1.2.3