Skip to content

Commit

Permalink
Check unrar tool with -? parameter
Browse files Browse the repository at this point in the history
The semantics of the check are the same but this will
fit unrar-free when it is installed as unrar.
  • Loading branch information
bgermann authored and markokr committed Mar 31, 2024
1 parent e9831e6 commit d23af93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rarfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3393,7 +3393,7 @@ def add_password_arg(self, cmdline, pwd):

UNRAR_CONFIG = {
"open_cmd": ("UNRAR_TOOL", "p", "-inul"),
"check_cmd": ("UNRAR_TOOL", "-inul"),
"check_cmd": ("UNRAR_TOOL", "-inul", "-?"),
"password": "-p",
"no_password": ("-p-",),
# map return code to exception class, codes from rar.txt
Expand Down

0 comments on commit d23af93

Please sign in to comment.