patch-deps_npm_lib_npm_js 531 B

12345678910111213
  1. $OpenBSD: patch-deps_npm_lib_npm_js,v 1.4 2017/01/23 16:47:04 abieber Exp $
  2. --- deps/npm/lib/npm.js.orig Mon Dec 12 11:29:06 2016
  3. +++ deps/npm/lib/npm.js Mon Dec 12 11:29:39 2016
  4. @@ -288,7 +288,7 @@
  5. // go ahead and spin up the registry client.
  6. npm.registry = new CachingRegClient(npm.config)
  7. - var umask = npm.config.get('umask')
  8. + var umask = npm.config.get('umask') || 0022
  9. npm.modes = {
  10. exec: parseInt('0777', 8) & (~umask),
  11. file: parseInt('0666', 8) & (~umask),