Skip to content

Commit d01746a

Browse files
committed
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: #2444 Credit: @isaacs Close: #2444 Reviewed-by: @nlf
1 parent 7a49fd4 commit d01746a

File tree

3 files changed

+3
-562
lines changed

3 files changed

+3
-562
lines changed

lib/utils/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const defaults = {
170170
'tag-version-prefix': 'v',
171171
timing: false,
172172
tmp: tmpdir(),
173-
umask: process.umask ? process.umask() : 0o22,
173+
umask: 0,
174174
unicode,
175175
'update-notifier': true,
176176
usage: false,

0 commit comments

Comments
 (0)