fs: revert "change statSync to accessSync..."

This reverts commit 809bf5e38c
("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>
This commit is contained in:
Rich Trott committed 2016-01-15 20:36:28 -08:00
1 parent 384b20362c
commit 3441a4178b
1 file changed
+1 -1
+1 -1
View File
@@ -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);