8000 fix overzealous replace in wrappers pathnames by NobodyNada · Pull Request #415 · ptitSeb/box64 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix overzealous replace in wrappers pathnames #415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 30, 2022

Conversation

NobodyNada
Copy link
Contributor

Wrapper filenames were generated by replacing ".c" with "_private.h". Unfortunately this matched anywhere in the string, causing problems if the path contained a directory containing the substring ".c". For instance, if box64 is compiled in a '.cache' directory (as AUR helpers like to do, see #144), the directory name was inadvertently mangled into '_private.hache'.

Fix this by restricting the match to the end of the string.

Wrapper filenames were generated by replacing ".c" with "_private.h".
Unfortunately this matched anywhere in the string, causing problems if
the path contained a directory containing the substring ".c". For
instance, if box64 is compiled in a '.cache' directory (as AUR helpers
like to do, see ptitSeb#144), the directory name was inadvertently mangled
into '_private.hache'.

Fix this by restricting the match to the end of the string.
@ptitSeb ptitSeb merged commit 1c11008 into ptitSeb:main Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0