diff options
author | isaacs <i@izs.me> | 2011-02-18 03:47:30 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-02-18 03:47:30 +0300 |
commit | 01820ffaa35d6eedab5a0565aba5e362ea0995cd (patch) | |
tree | ce5d433583b14962ef16f432a2c3654a9232ea93 | |
parent | 0f2b4d22a9b90427533df1a3c0d786325bc06ee5 (diff) |
Closes GH-603 Closes GH-604 Don't chmod symbolic links.
-rw-r--r-- | lib/cache.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cache.js b/lib/cache.js index 2a4f1c8c7..76bfe243d 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -427,8 +427,8 @@ function unpackTar_ ( tarball, unpackTarget, dMode, fMode, uid, gid, cb ) { }, function (er, files) { if (er) return cb(er) asyncMap(files, function (f, cb) { - fs.stat(f, function (er, stat) { - if (er) return cb(er) + fs.lstat(f, function (er, stat) { + if (er || stat.isSymbolicLink()) return cb(er) fs.chown(f, uid, gid, function (er) { if (er) return cb(er) var mode = stat.isDirectory() ? dMode : fMode |