From f9d7223de06c9328d9c09c8da01cd8c8683ecf64 Mon Sep 17 00:00:00 2001 From: Kilian Bartz Date: Sat, 2 May 2026 13:19:02 +0200 Subject: [PATCH 1/2] Handle GNUSparse archive entries --- src/archive/tar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 => { From 34977f028f028f38e0ed3a8810efac32c8152374 Mon Sep 17 00:00:00 2001 From: Kilian Bartz Date: Sat, 2 May 2026 14:08:36 +0200 Subject: [PATCH 2/2] added CHANGELOG.md entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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