diff --git a/CHANGELOG.md b/CHANGELOG.md index c08f53682..dea6854f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ Categories Used: ### Bug Fixes - Fix various panics not handled gracefully (https://github.com/ouch-org/ouch/pull/950) +- Handle GNUSparse archive entries during tar decompression (https://github.com/ouch-org/ouch/pull/975) ### Tweaks diff --git a/src/archive/tar.rs b/src/archive/tar.rs index 9dc992915..843cd3cf7 100644 --- a/src/archive/tar.rs +++ b/src/archive/tar.rs @@ -57,7 +57,7 @@ pub fn unpack_archive(reader: impl Read, output_folder: &Path) -> Result { fs::hard_link(&full_target_path, &full_link_path)?; } - tar::EntryType::Regular => { + tar::EntryType::Regular | tar::EntryType::GNUSparse => { entry.unpack_in(output_folder)?; } tar::EntryType::Directory => {