mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Zip - extract file with long name (> 100) from .tar archive in the pax format
This commit is contained in:
parent
c3f0f99774
commit
03e6a989d9
1 changed files with 0 additions and 10 deletions
|
|
@ -2153,11 +2153,6 @@ begin
|
|||
|
||||
if CurItem.ItemType in [UNKNOWN_ITEM] then
|
||||
raise EAbTarBadOp.Create; { Unsupported Type, Cannot Extract }
|
||||
if (CurItem.ItemType = UNSUPPORTED_ITEM) and
|
||||
((Length(CurItem.FileName) >= AB_TAR_NAMESIZE) or
|
||||
(Length(CurItem.LinkName) >= AB_TAR_NAMESIZE)) then
|
||||
raise EAbTarBadOp.Create; { Unsupported Type, Cannot Extract }
|
||||
{ We will allow extractions if the file name/Link name are strickly less than 100 chars }
|
||||
|
||||
{ Link to previously archived file }
|
||||
if CurItem.LinkFlag in [AB_TAR_LF_LINK] then
|
||||
|
|
@ -2221,11 +2216,6 @@ begin
|
|||
|
||||
if CurItem.ItemType in [UNKNOWN_ITEM] then
|
||||
raise EAbTarBadOp.Create; { Unsupported Type, Cannot Extract }
|
||||
if (CurItem.ItemType = UNSUPPORTED_ITEM) and
|
||||
((Length(CurItem.FileName) >= AB_TAR_NAMESIZE) or
|
||||
(Length(CurItem.LinkName) >= AB_TAR_NAMESIZE)) then
|
||||
raise EAbTarBadOp.Create; { Unsupported Type, Cannot Extract }
|
||||
{ We will allow extractions if the file name is strictly less than 100 chars }
|
||||
|
||||
FStream.Position := CurItem.StreamPosition+CurItem.FileHeaderCount*AB_TAR_RECORDSIZE;
|
||||
if CurItem.UncompressedSize <> 0 then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue