Skip to content

Commit

Permalink
Remove process.umask() call from config default
Browse files Browse the repository at this point in the history
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: #2444
Credit: @isaacs
Close: #2444
Reviewed-by: @nlf
  • Loading branch information
isaacs committed Jan 7, 2021
1 parent 7a49fd4 commit d01746a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 562 deletions.
2 changes: 1 addition & 1 deletion lib/utils/config.js
Expand Up @@ -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,
Expand Down

0 comments on commit d01746a

Please sign in to comment.