summaryrefslogtreecommitdiffstats
path: root/list.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-01-23 05:36:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-01-23 05:36:48 +0000
commit00184d655a72ed5a71aa80449250255fb8ac2caa (patch)
treeedfe486934a7174a4a8504eeb8923243407ad2db /list.c
parentReleasing debian version 1.13-6. (diff)
downloadlunzip-00184d655a72ed5a71aa80449250255fb8ac2caa.tar.xz
lunzip-00184d655a72ed5a71aa80449250255fb8ac2caa.zip
Merging upstream version 1.14~rc1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'list.c')
-rw-r--r--list.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/list.c b/list.c
index 33de75c..3d4b242 100644
--- a/list.c
+++ b/list.c
@@ -1,5 +1,5 @@
/* Lunzip - Decompressor for the lzip format
- Copyright (C) 2010-2022 Antonio Diaz Diaz.
+ Copyright (C) 2010-2023 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
@@ -43,13 +43,14 @@ static void list_line( const unsigned long long uncomp_size,
int list_files( const char * const filenames[], const int num_filenames,
- const bool ignore_trailing, const bool loose_trailing )
+ const struct Cl_options * const cl_opts )
{
unsigned long long total_comp = 0, total_uncomp = 0;
int files = 0, retval = 0;
int i;
bool first_post = true;
bool stdin_used = false;
+
for( i = 0; i < num_filenames; ++i )
{
const bool from_stdin = ( strcmp( filenames[i], "-" ) == 0 );
@@ -61,7 +62,7 @@ int list_files( const char * const filenames[], const int num_filenames,
if( infd < 0 ) { set_retval( &retval, 1 ); continue; }
struct Lzip_index lzip_index;
- Li_init( &lzip_index, infd, ignore_trailing, loose_trailing );
+ Li_init( &lzip_index, infd, cl_opts );
close( infd );
if( lzip_index.retval != 0 )
{