Skip to content

Commit

Permalink
Use OS separator to access filename
Browse files Browse the repository at this point in the history
  • Loading branch information
airium authored and markokr committed Sep 17, 2023
1 parent 97af187 commit a2bbe61
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 @@ -1331,7 +1331,7 @@ def _open_unrar(self, rarfile, inf, pwd=None, tmpfile=None, force_file=False):
# not giving filename avoids encoding related problems
fn = None
if not tmpfile or force_file:
fn = inf.filename
fn = inf.filename.replace("/", os.path.sep)

# read from unrar pipe
cmd = setup.open_cmdline(pwd, rarfile, fn)
Expand Down

0 comments on commit a2bbe61

Please sign in to comment.