diff options
author | isaacs <i@izs.me> | 2011-02-17 03:06:08 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-02-17 03:06:08 +0300 |
commit | a759d7f09f0629eca9a3af3cb51c4d619f111472 (patch) | |
tree | dde52afb3d3331486cb8d72acf39a15a87a20487 | |
parent | 6b317287ae6e68400d98763978543df298e4ff69 (diff) |
Closes GH-593 Let errors through in unsafe-perm mode.
-rw-r--r-- | lib/utils/uid-number.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/uid-number.js b/lib/utils/uid-number.js index 779a2b7bc..969919041 100644 --- a/lib/utils/uid-number.js +++ b/lib/utils/uid-number.js @@ -25,7 +25,7 @@ function uidNumber (uid, gid, cb) { if (er) return log.er(cb, "Could not get uid/gid "+err)(er) log.silly(out, "output from getuid/gid") out = JSON.parse(out+"") - if (out.error && out.errno === constants.EPERM) { + if (out.error) { if (!npm.config.get("unsafe-perm")) { var er = new Error(out.error) er.errno = out.errno |