summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-01-13 11:39:05 -0800
committerRich Trott <rtrott@gmail.com>2016-01-15 20:36:28 -0800
commit3441a4178b3e63d4c82e95772ac595eaa2209699 (patch)
tree2f48839e79ee2748ff8db62fe7b180f614fc2b59 /lib
parent384b20362c66b23240a319d2716c30ebede1e70e (diff)
downloadnode-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.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fs.js b/lib/fs.js
index d390335df8..50d6afc8b4 100644
--- a/lib/fs.js
+++ b/lib/fs.js
@@ -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);