Skip to content

Commit

Permalink
fs: revert "change statSync to accessSync..."
Browse files Browse the repository at this point in the history
This reverts commit 809bf5e
("change statSync to accessSync in realpathSync").

It was causing tests to fail on Windows CI.

Ref: nodejs#4575
PR-URL: nodejs#4679
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
Trott authored and Michael Scovetta committed Apr 2, 2016
1 parent 2ee8066 commit d9ae28b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d9ae28b

Please sign in to comment.