Skip to content

Commit 13ad06e

Browse files
Carlos Campderróspiscisaureus
authored andcommitted
doc: set logical umask in process.umask example
0644 seems to be the desired mode for new files (as it is a very weird umask), and to achieve that the correct umask would be 0022. PR-URL: nodejs/node-v0.x-archive#8039 Reviewed-by: Trevor Norris <[email protected]>
1 parent c90eac7 commit 13ad06e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/process.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ Sets or reads the process's file mode creation mask. Child processes inherit
708708
the mask from the parent process. Returns the old mask if `mask` argument is
709709
given, otherwise returns the current mask.
710710

711-
var oldmask, newmask = 0644;
711+
var oldmask, newmask = 0022;
712712

713713
oldmask = process.umask(newmask);
714714
console.log('Changed umask from: ' + oldmask.toString(8) +

0 commit comments

Comments
 (0)