process: normalize process.execPath in CreateProcessObject() · nodejs/node@ae21fca · GitHub
Skip to content

Commit ae21fca

Browse files
joyeecheungaddaleax
authored andcommitted
process: normalize process.execPath in CreateProcessObject()
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 <riclau@uk.ibm.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent dfd47aa commit ae21fca

2 files changed

Lines changed: 26 additions & 20 deletions

File tree

lib/internal/bootstrap/node.js

Lines changed: 0 additions & 7 deletions

src/node_process_object.cc

Lines changed: 26 additions & 13 deletions

0 commit comments

Comments
 (0)