diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2018-12-30 17:01:47 +0300 |
---|---|---|
committer | Kornel <kornel@geekhood.net> | 2018-12-30 17:01:47 +0300 |
commit | 5b2a99c548a6c9c90d4cc63cddca29af009c2479 (patch) | |
tree | fb4af843548b762bdb6cc8dc2ec65457a9fdf7da /CPP/7zip/Archive/Tar | |
parent | 18dc2b41613055f0daf7f6a1d4311368798ea12a (diff) |
18.0618.06
Diffstat (limited to 'CPP/7zip/Archive/Tar')
-rw-r--r-- | CPP/7zip/Archive/Tar/TarIn.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/CPP/7zip/Archive/Tar/TarIn.cpp b/CPP/7zip/Archive/Tar/TarIn.cpp index d432c318..32761658 100644 --- a/CPP/7zip/Archive/Tar/TarIn.cpp +++ b/CPP/7zip/Archive/Tar/TarIn.cpp @@ -443,14 +443,14 @@ HRESULT ReadItem(ISequentialInStream *stream, bool &filled, CItemEx &item, EErro case 'X': { // pax Extended Header - if (item.Name.IsPrefixedBy("PaxHeader/")) + if (item.Name.IsPrefixedBy("PaxHeader/") + || item.Name.Find("PaxHeaders.4467/") >= 0) { RINOK(ReadDataToString(stream, item, pax, error)); if (error != k_ErrorType_OK) return S_OK; continue; } - break; } case NFileHeader::NLinkFlag::kDumpDir: @@ -488,7 +488,11 @@ HRESULT ReadItem(ISequentialInStream *stream, bool &filled, CItemEx &item, EErro if (ParsePaxLongName(pax, name)) item.Name = name; else - error = k_ErrorType_Warning; + { + // no "path" property is allowed in pax4467 + // error = k_ErrorType_Warning; + } + pax.Empty(); } return S_OK; |