diff options
author | isaacs <i@izs.me> | 2011-10-21 04:05:39 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-10-21 04:05:39 +0400 |
commit | 8bd5c1f5506e49d6cd639b07074fa30cd93cfe55 (patch) | |
tree | bc250d567f209dade10cb09a4a7a92d3a3a24a3a /lib | |
parent | 19bbc786ec80ba6fd77e92aea7cb1b75032ce81f (diff) |
mkdir: A few more places where the noChmod wasn't set
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils/mkdir-p.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/utils/mkdir-p.js b/lib/utils/mkdir-p.js index 4f8de784d..cc2b465fb 100644 --- a/lib/utils/mkdir-p.js +++ b/lib/utils/mkdir-p.js @@ -78,12 +78,12 @@ function done (ensure, mode, uid, gid, noChmod, cb) { log.verbose("done: "+ensure+" "+mode.toString(8), "mkdir") // only chmod if noChmod isn't set. - var d = done_(ensure, mode, uid, gid, noChmod, cb) + var d = done_(ensure, mode, uid, gid, cb) if (noChmod) return d() fs.chmod(ensure, mode, d) } -function done_ (ensure, mode, uid, gid, noChmod, cb) { +function done_ (ensure, mode, uid, gid, cb) { return function (er) { if (er || ensure === npm.dir @@ -97,7 +97,7 @@ function done_ (ensure, mode, uid, gid, noChmod, cb) { } var pathSplit = process.platform === "win32" ? /\/|\\/ : "/" -function walkDirs (ensure, mode, uid, gid, cb) { +function walkDirs (ensure, mode, uid, gid, noChmod, cb) { var dirs = ensure.split(pathSplit) , walker = [] , foundUID = null @@ -111,7 +111,7 @@ function walkDirs (ensure, mode, uid, gid, cb) { // no more directory steps left. if (d === undefined) { // do the chown stuff - return done(ensure, mode, uid, gid, cb) + return done(ensure, mode, uid, gid, noChmod, cb) } // get the absolute dir for the next piece being stat'd |