Skip to content

Commit c1347b3

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
1 parent 916686d commit c1347b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/config.js

Lines changed: 1 addition & 1 deletion
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)