diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-01-23 05:44:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-01-23 05:44:38 +0000 |
commit | 6f69650067a884d986108e7465ea26948b3388d2 (patch) | |
tree | 284b1092159baec1e87f59f32ebfc99de52b5266 /list.cc | |
parent | Releasing debian version 1.10-6. (diff) | |
download | plzip-6f69650067a884d986108e7465ea26948b3388d2.tar.xz plzip-6f69650067a884d986108e7465ea26948b3388d2.zip |
Merging upstream version 1.11.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'list.cc')
-rw-r--r-- | list.cc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 ) { |