From 684f601a8d5c03271f00c79ecf2503adc8f88aed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 23 Jan 2024 06:44:35 +0100 Subject: Adding upstream version 1.11. Signed-off-by: Daniel Baumann --- list.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'list.cc') diff --git a/list.cc b/list.cc index 39f2cd3..4b212fc 100644 --- a/list.cc +++ b/list.cc @@ -1,5 +1,5 @@ /* Plzip - Massively parallel implementation of lzip - Copyright (C) 2009-2022 Antonio Diaz Diaz. + Copyright (C) 2009-2024 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 @@ -48,12 +48,13 @@ void list_line( const unsigned long long uncomp_size, int list_files( const std::vector< std::string > & filenames, - const bool ignore_trailing, const bool loose_trailing ) + const Cl_options & cl_opts ) { unsigned long long total_comp = 0, total_uncomp = 0; int files = 0, retval = 0; bool first_post = true; bool stdin_used = false; + for( unsigned i = 0; i < filenames.size(); ++i ) { const bool from_stdin = ( filenames[i] == "-" ); @@ -65,7 +66,7 @@ int list_files( const std::vector< std::string > & filenames, open_instream( input_filename, &in_stats, false, true ); if( infd < 0 ) { set_retval( retval, 1 ); continue; } - const Lzip_index lzip_index( infd, ignore_trailing, loose_trailing ); + const Lzip_index lzip_index( infd, cl_opts ); close( infd ); if( lzip_index.retval() != 0 ) { -- cgit v1.2.3