From 13ad06e095a1642b22a3d03f8ede5bfa5d15051a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Campderr=C3=B3s?= Date: Thu, 31 Jul 2014 10:34:51 +0200 Subject: [PATCH] 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: https://github.com/joyent/node/pull/8039 Reviewed-by: Trevor Norris --- doc/api/process.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/process.markdown b/doc/api/process.markdown index 614f5cf07aa..ba0032509a2 100644 --- a/doc/api/process.markdown +++ b/doc/api/process.markdown @@ -708,7 +708,7 @@ Sets or reads the process's file mode creation mask. Child processes inherit the mask from the parent process. Returns the old mask if `mask` argument is given, otherwise returns the current mask. - var oldmask, newmask = 0644; + var oldmask, newmask = 0022; oldmask = process.umask(newmask); console.log('Changed umask from: ' + oldmask.toString(8) +