mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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:
1 parent
384b20362c
commit
3441a4178b
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user