From d01746a5a6dde115ee6a600cdf54c9b35afcab3f Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 5 Jan 2021 16:28:18 -0800 Subject: Remove process.umask() call from config default Since we now are using pacote/tar in a way that will rely on the default process umask setting, and we set file/directory modes explicitly anyway, there's no need to have a default umask setting that calls process.umask() As this method is not worker-thread safe, and is deprecated, it's best for us to stop using it. Fix: #1103 PR-URL: https://github.com/npm/cli/pull/2444 Credit: @isaacs Close: #2444 Reviewed-by: @nlf --- lib/utils/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/utils') diff --git a/lib/utils/config.js b/lib/utils/config.js index 2b6b96e5c..426f0a529 100644 --- a/lib/utils/config.js +++ b/lib/utils/config.js @@ -170,7 +170,7 @@ const defaults = { 'tag-version-prefix': 'v', timing: false, tmp: tmpdir(), - umask: process.umask ? process.umask() : 0o22, + umask: 0, unicode, 'update-notifier': true, usage: false, -- cgit v1.2.3