diff options
author | Rich Trott <rtrott@gmail.com> | 2016-01-13 11:39:05 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-01-15 20:36:28 -0800 |
commit | 3441a4178b3e63d4c82e95772ac595eaa2209699 (patch) | |
tree | 2f48839e79ee2748ff8db62fe7b180f614fc2b59 /lib | |
parent | 384b20362c66b23240a319d2716c30ebede1e70e (diff) | |
download | node-new-3441a4178b3e63d4c82e95772ac595eaa2209699.tar.gz |
fs: revert "change statSync to accessSync..."
This reverts commit 809bf5e38cdb1fe304da9d413f07e9d7e66ce8f9
("change statSync to accessSync in realpathSync").
It was causing tests to fail on Windows CI.
Ref: https://github.com/nodejs/node/pull/4575
PR-URL: https://github.com/nodejs/node/pull/4679
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fs.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1550,7 +1550,7 @@ fs.realpathSync = function realpathSync(p, cache) { } } if (linkTarget === null) { - fs.accessSync(base, fs.F_OK); // Throws ELOOP on cyclic links. + fs.statSync(base); linkTarget = fs.readlinkSync(base); } resolvedLink = pathModule.resolve(previous, linkTarget); |