Skip to content

Commit

Permalink
Properly obey -R
Browse files Browse the repository at this point in the history
Even if -R is specified, directory names still have special
characters '[', ']', '<', '>', and ' ' removed. Fix it.
  • Loading branch information
Demon000 committed Jun 13, 2024
1 parent a3f54a1 commit b0cd2f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unshield.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,9 @@ static bool extract_file(Unshield* unshield, const char* prefix, int index)
case '>':
case '[':
case ']':
if (raw_filename)
break;

*p = '_';
break;

Expand Down

0 comments on commit b0cd2f1

Please sign in to comment.