summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/which/which.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/which/which.js')
-rw-r--r--deps/npm/node_modules/which/which.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/npm/node_modules/which/which.js b/deps/npm/node_modules/which/which.js
index f19dd335b..2a45417da 100644
--- a/deps/npm/node_modules/which/which.js
+++ b/deps/npm/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
}