diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 0d3f6a785be2aa..c850c5c16cf781 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2542,6 +2542,24 @@ accordingly instead to avoid the ambigiuty. To maintain existing behaviour `response.finished` should be replaced with `response.writableEnded`. + +### DEP0139: `process.umask()` with no arguments + + +Type: Documentation-only + +Calling `process.umask()` with no arguments causes the process-wide umask to be +written twice. This introduces a race condition between threads, and is a +potential security vulnerability. There is no safe, cross-platform alternative +API. + [`--http-parser=legacy`]: cli.html#cli_http_parser_library [`--pending-deprecation`]: cli.html#cli_pending_deprecation [`--throw-deprecation`]: cli.html#cli_throw_deprecation diff --git a/doc/api/process.md b/doc/api/process.md index 2fb0b77f7df702..d9b776fdbc9f04 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -2396,8 +2396,18 @@ flag's behavior. ## `process.umask([mask])` +> Stability: 0 - Deprecated. Calling `process.umask()` with no arguments is +> deprecated. No alternative is provided. + * `mask` {string|integer} The `process.umask()` method sets or returns the Node.js process's file mode