Skip to content

Commit d9ae28b

Browse files
TrottMichael Scovetta
authored andcommitted
fs: revert "change statSync to accessSync..."
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>
1 parent 2ee8066 commit d9ae28b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ fs.realpathSync = function realpathSync(p, cache) {
15501550
}
15511551
}
15521552
if (linkTarget === null) {
1553-
fs.accessSync(base, fs.F_OK); // Throws ELOOP on cyclic links.
1553+
fs.statSync(base);
15541554
linkTarget = fs.readlinkSync(base);
15551555
}
15561556
resolvedLink = pathModule.resolve(previous, linkTarget);

0 commit comments

Comments
 (0)