Skip to content

src: do not modify original argv array on AIX

Rodrigo Muino Tomonari requested to merge github/fork/hhellyer/aix_cmdline into master

AIX passes the same argv array that ps and other utilities see to main(). Node removes elements from argv but as it can't pass back updates to argc which is passed by value to main() it effectively corrupts that array for other users.

Fixes: https://github.com/nodejs/node/issues/10607

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

src

Merge request reports

Loading