Skip to content

Commit

Permalink
Merge pull request #176 from rbran/fix-just-copy-it
Browse files Browse the repository at this point in the history
Only copy compressed data if compression options was unchanged
  • Loading branch information
wcampbell0x2a authored Mar 4, 2023
2 parents e4c4353 + 8d181bb commit a3ed7c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ impl<'a, 'b, R: ReadSeek> TreeNode<'a, 'b, R> {
// squashfs files and use the same compressor and block_size
// just copy the data, don't compress->decompress
if file.system.compressor == system_write.compressor
&& file.system.compression_options == system_write.compression_options
&& file.system.block_size == system_write.block_size
{
data_writer.just_copy_it(file.raw_data_reader(), writer)?
Expand Down

0 comments on commit a3ed7c2

Please sign in to comment.