mirror of
https://github.com/aaru-dps/Aaru.git
synced 2026-07-08 17:56:18 +00:00
Enhance tar format detection to accept checksum-validated V7 headers
This commit is contained in:
@@ -50,8 +50,8 @@ public sealed partial class Tar
|
||||
|
||||
TarFormat format = DetectFormat(header);
|
||||
|
||||
// Only identify by magic, not by filename or checksum-only heuristics
|
||||
return format is TarFormat.Ustar or TarFormat.Gnu or TarFormat.Star;
|
||||
// Accept checksum-validated V7 headers, but still reject unrecognized no-magic headers.
|
||||
return format is TarFormat.Ustar or TarFormat.Gnu or TarFormat.Star or TarFormat.V7Recognized;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user