From 73ed2748dd08d0050f47ff088a8168cb65f81a2b Mon Sep 17 00:00:00 2001 From: Micah Snyder Date: Fri, 28 Sep 2018 14:30:42 -0400 Subject: [PATCH] Patch UnRAR: allow skipping files in solid archives This is a cherry-pick of commit 24f225c21ffa77dbd4b2a3c0377b9b3f86547ce6 Modification to unrar codebase allowing skipping of files within Solid archives when parsing in extraction mode, enabling us to skip encrypted files while still scanning metadata and potentially scanning unencrypted files later in the archive. --- libclamunrar/dll.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libclamunrar/dll.cpp b/libclamunrar/dll.cpp index 178d5595a4..6661ce334c 100644 --- a/libclamunrar/dll.cpp +++ b/libclamunrar/dll.cpp @@ -329,7 +329,7 @@ int PASCAL ProcessFile(HANDLE hArcData,int Operation,char *DestPath,char *DestNa { Data->Cmd.DllError=0; if (Data->OpenMode==RAR_OM_LIST || Data->OpenMode==RAR_OM_LIST_INCSPLIT || - Operation==RAR_SKIP && !Data->Arc.Solid) + Operation==RAR_SKIP) // && !Data->Arc.Solid) { if (Data->Arc.Volume && Data->Arc.GetHeaderType()==HEAD_FILE && Data->Arc.FileHead.SplitAfter)