Skip to content

Fix #219 #229

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 5 commits into from
Jan 24, 2022
Merged

Fix #219 #229

merged 5 commits into from
Jan 24, 2022

Conversation

bgamari
Copy link
Contributor

@bgamari bgamari commented Jan 11, 2022

This fixes #219 by ensuring that find_executable respects the working directory requested by the user.

I also fix an orthogonal bug which meant that execvpe wouldn't be used, even if available.

When `execvpe` is not available we use `find_executable` to search for
the executable prior to `fork`ing (fixing GHC #19994). However,
previously we failed to account for the fact that `exec` will be called
from a different working directory than that of the spawning process if
the user has set `cwd`.

Fix this by teaching `find_executable` to search relative to the
requested working directory.

Fixes haskell#219.
It turns out the autoconf upper-cases the symbol name.
@snoyberg snoyberg merged commit 240f0c4 into haskell:master Jan 24, 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.

Bad address when using relative cwd and setting env
2 participants