Skip to content

Commit

Permalink
Don't override user preference in unrar
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuskuss authored Apr 30, 2024
1 parent 90169eb commit 5cc7816
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion daemon/postprocess/DirectUnpack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ void DirectUnpack::ExecuteUnrar(const char* archiveName)
params.emplace_back("-p-");
}

if (!params.Exists("-o+") && !params.Exists("-o-"))
if (!params.Exists("-o+") && !params.Exists("-o-") && !params.Exists("-or"))
{
params.emplace_back("-o+");
}
Expand Down
2 changes: 1 addition & 1 deletion daemon/postprocess/Unpack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ void UnpackController::ExecuteUnrar(const char* password)
params.emplace_back("-p-");
}

if (!params.Exists("-o+") && !params.Exists("-o-"))
if (!params.Exists("-o+") && !params.Exists("-o-") && !params.Exists("-or"))
{
params.emplace_back("-o+");
}
Expand Down

0 comments on commit 5cc7816

Please sign in to comment.