diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-02-27 15:05:56 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2015-02-27 15:05:56 +0300 |
commit | 89fc6a4e7ff8c524675fcc14493ca0a1e3a76d38 (patch) | |
tree | aba38ea449fd13f4c2b99be27b8f66b65f460be2 | |
parent | 5d0612f31e226cba32a05351c47b055c0ab6c557 (diff) |
which@1.0.9
Test for being run as root, as well as the current user.
-rw-r--r-- | node_modules/which/package.json | 21 | ||||
-rw-r--r-- | node_modules/which/which.js | 2 | ||||
-rw-r--r-- | package.json | 2 |
3 files changed, 14 insertions, 11 deletions
diff --git a/node_modules/which/package.json b/node_modules/which/package.json index 079989abc..d2b7b166f 100644 --- a/node_modules/which/package.json +++ b/node_modules/which/package.json @@ -6,7 +6,7 @@ }, "name": "which", "description": "Like which(1) unix command. Find the first instance of an executable in the PATH.", - "version": "1.0.8", + "version": "1.0.9", "repository": { "type": "git", "url": "git://github.com/isaacs/node-which.git" @@ -16,17 +16,17 @@ "which": "./bin/which" }, "license": "ISC", - "gitHead": "681a9ebbc447cb428232ddf6c0983006d89e7755", + "gitHead": "df3d52a0ecd5f366d550e0f14d67ca4d5e621bad", "bugs": { "url": "https://github.com/isaacs/node-which/issues" }, "homepage": "https://github.com/isaacs/node-which", - "_id": "which@1.0.8", + "_id": "which@1.0.9", "scripts": {}, - "_shasum": "c2ff319534ac4a1fa45df2221b56c36279903ded", - "_from": "which@>=1.0.8 <1.1.0", - "_npmVersion": "2.1.11", - "_nodeVersion": "0.10.16", + "_shasum": "460c1da0f810103d0321a9b633af9e575e64486f", + "_from": "which@>=1.0.9 <1.1.0", + "_npmVersion": "2.6.0", + "_nodeVersion": "1.1.0", "_npmUser": { "name": "isaacs", "email": "i@izs.me" @@ -38,9 +38,10 @@ } ], "dist": { - "shasum": "c2ff319534ac4a1fa45df2221b56c36279903ded", - "tarball": "http://registry.npmjs.org/which/-/which-1.0.8.tgz" + "shasum": "460c1da0f810103d0321a9b633af9e575e64486f", + "tarball": "http://registry.npmjs.org/which/-/which-1.0.9.tgz" }, "directories": {}, - "_resolved": "https://registry.npmjs.org/which/-/which-1.0.8.tgz" + "_resolved": "https://registry.npmjs.org/which/-/which-1.0.9.tgz", + "readme": "ERROR: No README data found!" } diff --git a/node_modules/which/which.js b/node_modules/which/which.js index f19dd335b..2a45417da 100644 --- a/node_modules/which/which.js +++ b/node_modules/which/which.js @@ -16,7 +16,9 @@ if (process.platform == "win32") { //console.error("isExe?", (mod & 0111).toString(8)) var ret = (mod & 0001) || (mod & 0010) && process.getgid && gid === process.getgid() + || (mod & 0010) && process.getuid && 0 === process.getuid() || (mod & 0100) && process.getuid && uid === process.getuid() + || (mod & 0100) && process.getuid && 0 === process.getuid() //console.error("isExe?", ret) return ret } diff --git a/package.json b/package.json index dac2e7c7a..52db81aeb 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,7 @@ "text-table": "~0.2.0", "uid-number": "0.0.6", "umask": "~1.1.0", - "which": "~1.0.8", + "which": "~1.0.9", "wrappy": "~1.0.1", "write-file-atomic": "~1.1.0" }, |