From e3cf36490364af2b127627b54cedc2f93fe5edce Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 17 Oct 2021 22:21:18 +0200 Subject: [PATCH] store: Don't extract PaxHeader file --- source/views/view_store.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/views/view_store.cpp b/source/views/view_store.cpp index fc660ccc4..26c782cd7 100644 --- a/source/views/view_store.cpp +++ b/source/views/view_store.cpp @@ -77,6 +77,11 @@ namespace hex { auto extractBasePath = this->m_downloadPath.parent_path() / this->m_downloadPath.stem(); while (mtar_read_header(&ctx, &header) != MTAR_ENULLRECORD) { auto filePath = extractBasePath / fs::path(header.name); + if (filePath.filename() == "@PaxHeader") { + mtar_next(&ctx); + continue; + } + fs::create_directories(filePath.parent_path()); File outputFile(filePath.string(), File::Mode::Create);