File tree 2 files changed +28
-0
lines changed
2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -2542,6 +2542,24 @@ accordingly instead to avoid the ambigiuty.
2542
2542
To maintain existing behaviour ` response.finished ` should be replaced with
2543
2543
` response.writableEnded ` .
2544
2544
2545
+ <a id =" DEP0139 " ></a >
2546
+ ### DEP0139: ` process.umask() ` with no arguments
2547
+ <!-- YAML
2548
+ changes:
2549
+ - version:
2550
+ - v14.0.0
2551
+ - REPLACEME
2552
+ pr-url: https://github.com/nodejs/node/pull/32499
2553
+ description: Documentation-only deprecation.
2554
+ -->
2555
+
2556
+ Type: Documentation-only
2557
+
2558
+ Calling ` process.umask() ` with no arguments causes the process-wide umask to be
2559
+ written twice. This introduces a race condition between threads, and is a
2560
+ potential security vulnerability. There is no safe, cross-platform alternative
2561
+ API.
2562
+
2545
2563
[ `--http-parser=legacy` ] : cli.html#cli_http_parser_library
2546
2564
[ `--pending-deprecation` ] : cli.html#cli_pending_deprecation
2547
2565
[ `--throw-deprecation` ] : cli.html#cli_throw_deprecation
Original file line number Diff line number Diff line change @@ -2396,8 +2396,18 @@ flag's behavior.
2396
2396
## ` process.umask([mask]) `
2397
2397
<!-- YAML
2398
2398
added: v0.1.19
2399
+ changes:
2400
+ - version:
2401
+ - v14.0.0
2402
+ - REPLACEME
2403
+ pr-url: https://github.com/nodejs/node/pull/32499
2404
+ description: Calling `process.umask()` with no arguments is deprecated.
2405
+
2399
2406
-->
2400
2407
2408
+ > Stability: 0 - Deprecated. Calling ` process.umask() ` with no arguments is
2409
+ > deprecated. No alternative is provided.
2410
+
2401
2411
* ` mask ` {string|integer}
2402
2412
2403
2413
The ` process.umask() ` method sets or returns the Node.js process's file mode
You can’t perform that action at this time.
0 commit comments