Skip to content

Commit

Permalink
Patch UnRAR: allow skipping files in solid archives
Browse files Browse the repository at this point in the history
This is a cherry-pick of commit 24f225c

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.
  • Loading branch information
micahsnyder committed Oct 20, 2023
1 parent 960991e commit 8b58648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libclamunrar/dll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8b58648

Please sign in to comment.