diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-12-12 13:39:07 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-12-12 13:39:07 +0000 |
commit | 4a9643b557eefa0f3d3eb8847d9d026945eed37e (patch) | |
tree | 9391e726cdc9e5f5ace3f41c52373c52c5aa85f4 /delete_lz.cc | |
parent | Releasing debian version 0.25-2. (diff) | |
download | tarlz-4a9643b557eefa0f3d3eb8847d9d026945eed37e.tar.xz tarlz-4a9643b557eefa0f3d3eb8847d9d026945eed37e.zip |
Merging upstream version 0.26.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'delete_lz.cc')
-rw-r--r-- | delete_lz.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/delete_lz.cc b/delete_lz.cc index b67efa0..a9c31ad 100644 --- a/delete_lz.cc +++ b/delete_lz.cc @@ -20,7 +20,7 @@ #include <cctype> #include <cerrno> #include <cstdio> -#include <stdint.h> // for lzlib.h +#include <stdint.h> // for lzlib.h #include <unistd.h> #include <lzlib.h> @@ -35,8 +35,7 @@ */ int delete_members_lz( const Cl_options & cl_opts, const Archive_descriptor & ad, - std::vector< char > & name_pending, - const int outfd ) + std::vector< char > & name_pending, const int outfd ) { Archive_reader_i ar( ad ); // indexed reader Resizable_buffer rbuf; @@ -124,7 +123,8 @@ int delete_members_lz( const Cl_options & cl_opts, if( istream_pos == 0 ) { if( !safe_seek( outfd, size ) ) { retval = 1; goto done; } } else if( !safe_seek( ad.infd, istream_pos ) || - !copy_file( ad.infd, outfd, size ) ) { retval = 1; goto done; } + !copy_file( ad.infd, outfd, ad.namep, size ) ) + { retval = 1; goto done; } } istream_pos = ad.lzip_index.mblock( i ).end(); // member end } |