diff options
author | Myles Borins <mylesborins@github.com> | 2020-10-02 17:52:19 -0400 |
---|---|---|
committer | Myles Borins <mylesborins@github.com> | 2020-10-07 09:59:49 -0400 |
commit | 2e545249557c265f7d5f338cc3a382985211603c (patch) | |
tree | a18ca49252a58cc5a80cd438a020a99bf48a8d23 /deps/npm/node_modules/mkdirp-infer-owner/README.md | |
parent | 14699846452e627f97dedb85991eea67d932a79d (diff) | |
download | node-new-2e545249557c265f7d5f338cc3a382985211603c.tar.gz |
deps: update npm to 7.0.0-rc.3
PR-URL: https://github.com/nodejs/node/pull/35474
Reviewed-By: Ruy Adorno <ruyadorno@github.com>
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
Reviewed-By: Ben Coe <bencoe@gmail.com>
Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'deps/npm/node_modules/mkdirp-infer-owner/README.md')
-rw-r--r-- | deps/npm/node_modules/mkdirp-infer-owner/README.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/deps/npm/node_modules/mkdirp-infer-owner/README.md b/deps/npm/node_modules/mkdirp-infer-owner/README.md new file mode 100644 index 0000000000..c466ac3404 --- /dev/null +++ b/deps/npm/node_modules/mkdirp-infer-owner/README.md @@ -0,0 +1,16 @@ +# mkdirp-infer-owner + +[`mkdirp`](http://npm.im/mkdirp), but chown to the owner of the containing +folder if possible and necessary. + +That is, on Windows and when running as non-root, it's exactly the same as +[`mkdirp`](http://npm.im/mkdirp). + +When running as root on non-Windows systems, it uses +[`infer-owner`](http://npm.im/infer-owner) to find the owner of the +containing folder, and then [`chownr`](http://npm.im/chownr) to set the +ownership of the created folder to that same uid/gid. + +This is used by [npm](http://npm.im/npm) to prevent root-owned files and +folders from showing up in your home directory (either in `node_modules` or +in the `~/.npm` cache) when running as root. |