-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
process: normalize process.execPath in CreateProcessObject() #26002
Conversation
Directly normalize `process.execPath` using `uv_fs_realpath` on OpenBSD before serializing it into the process object, instead of using `require('fs')` to normalize and override the path in `bootstrap/node.js`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM but I wonder whether the original change for OpenBSD should have been pushed up to libuv.
I second what Richard says. If |
I agree with that too. The only issue is that we don't test OpenBSD in the CI (AFAIK), so someone would have to set that up first to fix it with any confidence. |
I agree this can be done in libuv instead, though this just moves what we already do to the C++. We can come back removing the special case code when this gets done in the upstream. |
Landed in af83f6a |
Directly normalize `process.execPath` using `uv_fs_realpath` on OpenBSD before serializing it into the process object, instead of using `require('fs')` to normalize and override the path in `bootstrap/node.js`. PR-URL: nodejs#26002 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: James M Snell <[email protected]>
Directly normalize `process.execPath` using `uv_fs_realpath` on OpenBSD before serializing it into the process object, instead of using `require('fs')` to normalize and override the path in `bootstrap/node.js`. PR-URL: #26002 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: James M Snell <[email protected]>
Directly normalize
process.execPath
usinguv_fs_realpath
on OpenBSD before serializing it into the process object,
instead of using
require('fs')
to normalize and overridethe path in
bootstrap/node.js
.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes